Reset Overrides

Hi everyone! This is my first post here! I’m currently deep into a complex design system but I did a mistake that I did not forsee that completely destroyed my variants.

Let me try to explain it as simple as possible.
Imagine a button component. Now imagine a card component that has a button instance inside it.

The problem is that I used the Clean Document plugin and it re-written the instances names into things like ‘State=Default’. Now since that instance has a different name from the master component it doesn’t copy the text I’ve overritten on the instance when I try to change it’s variant.

Is there a way for me to reset the names of all the instances in a page?

I’ve tried doing this by downloading another plugin called ‘Select all instances’ to try to overwrite the names only. The thing is I doesn’t select instances inside instances. So only the outter instances get their name overriden.

I need a way to automatically revert all instances name back but there’s no way to do this… Only by overriding all the properties, but then again, I don’t want to overide all the properties.