Geometry nodes: How to split mesh based on all existing named attributes?

I’d like to separate geometry by named attributes. For example, if I have a sphere with vertex group marked as “type A”, “type B” (and for the rest of the alphabet as well), can I use Split to Instances node to separate said groups somehow, without using bunch of individual Strings to do that? I know something similar can be done with material separation, but this doesn’t apply here. Only named attributes can be used.

Also, I expect some vertex groups to overlap and when making a separate instance, that overlap should be preserved for each instance.

So you just want the geonode setup to … select all X-number of named attributes automatically, then create branches for this X number of existing attributes?

Yes.
5 chars