Whether a tag is a valid Map or Mapping tag.
tag
bool isYamlMapTag(TagShorthand tag) => tag == mappingTag || _canBeSequenceOrMap(tag);