Fix backtick escape detection