Lexer (py)re2 compatibility