Here is a more simple problem I solved, it will maybe get you started?
For you, one likely way might be to rename the original group, ungroup the one you’re interested in, add the new thing to it, make new group with original group name, swap back rest of groups to new group?!