Fix backtracking bug after an escaped character.