Hello !
You can try this :
The vertex group should exist in the mesh, named attribute allows to read it , Store attribute write it.
It works in this case, and it should on others, but I didn’t test either.
If it doesn’t work on more exotic modifier I won’t be too much surprised !
Have fun !