code: def parse(cls, parser, text, pos):
          
          try:
              parser._parsing_parenthesized_simple_values_expression = True
              remaining_text, recognized_tokens = parser.parse(text, cls.grammar)
              return remaining_text, recognized_tokens
          except SyntaxError as e:
              return text, e
          finally:
              parser._parsing_parenthesized_simple_values_expression = False
docs: Using our own parse to enable the flag below.