   'unicode-regex-internals':
     'patterns': [
       {
-        'match': '\\\\[bBAZzG]|\\^|\\$'
+        'match': '\\\\[bBAZzG]|\\^'
+        'name': 'keyword.control.anchor.stata'
+      }
+      {
+        'match': '\\$(?![a-zA-Z\\{])'
         'name': 'keyword.control.anchor.stata'
       }
       {

        ]
      }
      {
        'begin': '(\\$)'
        'beginCaptures':
          '0':
            'name': 'punctuation.definition.string.begin.stata'
        'end': '(?=\\"|\\s|\\n|/|,)'
        'endCaptures':
          '1':
            'name': 'punctuation.definition.string.end.stata'

      }
      {
        'include': '#ascii-regex-character-class'
      }
      {
        'include': '#macro-local'
      }
      {
        'include': '#macro-global'
      }
      {
        # 'comment' 'NOTE: Error if I have \.+ No idea why but it works fine it seems with just \.'
