I was exploring a similar us case with tags from one tag group being required and practically used as top-level structure (replacing categories).
Right now tags only have their name stored in a data attribute. It would be great if their group would also be stored in an attribute. So we could distinguish tag groups on the ux.
edit: posted a feature request for this: Add a data-tag-group attribute for tags