How can I get the current selection of a specified variant set?

I’m struggling to find a way to do it. Essentially what I am after is a way to get the name of the currently selected variant, so that I can then append a string to that and use that resulting string to set a new variant.
I’ve asked chatGPT but it only suggests things like “get selected option” or “selected index” but I find no such nodes. I’m in 5.3.

Hey, did you find a solution for this? I’m going crazy trying to figure it out