code: def _vars_match(self):
          
          return re.compile(
              r'#([A-Za-z]+)'  # match literal (#App) at beginning of String
              r':([\d]+)'  # app id (:7979)
              r':([A-Za-z0-9_\.\-\[\]]+)'  # variable name (:variable_name)
              r'!(StringArray|BinaryArray|KeyValueArray'  # variable type (array)
              r'|TCEntityArray|TCEnhancedEntityArray'  # variable type (array)
              r'|String|Binary|KeyValue|TCEntity|TCEnhancedEntity'  # variable type
              r'|(?:(?!String)(?!Binary)(?!KeyValue)'  # non matching for custom
              r'(?!TCEntity)(?!TCEnhancedEntity)'  # non matching for custom
              r'[A-Za-z0-9_-]+))'  # variable type (custom)
          )
docs: Regular expression to match playbook variable.