       }
       {
         'comment': 'color regexr with regular quotes i.e. " '
-        'match': '\\b(regexr)(\\()([^,]+)(,)\\s*(\")([^"]+)(\"(\')?)\\s*(,)([^\\)]*)(\\))'
+        'match': '\\b(regexr)(\\()([^,]+)(,)\\s*(\")([^"]+)(\"(\')?)\\s*([^\\)]*)(\\))'
         'captures':
           '1':
             'name': 'support.function.builtin.stata'

          '8':
            'name': 'invalid.illegal.punctuation.stata'
          '9':
            'name': 'punctuation.definition.variable.begin.stata' # the comma
          '10':
            'patterns': [
              {
                'include': '#string-compound'
              }

              {
                'include': '#comments-triple-slash'
              }          
              {
                'include': '#numbers'
              }
            ]
          '10':
            'name': 'punctuation.definition.parameters.end.stata'      
      }
      {
        'comment': 'color regexr with compound quotes i.e. `"text"\' '
        'match': '\\b(ustrregexrf|ustrregexra)(\\()([^,]+)(,)\\s*(`\")([^"]+)(\"\')\\s*([^\\)]*)(\\))'
        'captures':
          '1':
            'name': 'support.function.builtin.stata'
