Here is the query just pass the any string on the place of ABC123 you will find the length of the string without using Len() function,
DECLARE @A VARCHAR(MAX)= 'ABC123' ,
@myChar VARCHAR(2)= '@' ,
@repVal VARCHAR(MAX)
SET @repVal = REPLACE(@A, '@', '_')
SET @repVal = @repVal + @myChar
SELECT CHARINDEX('@', @repVal) - 1