Add tag pattern (?:(?P<tag>git diff?\w+)\s+)? to YAML regex expressions