Selecting/Finding Nested Groups

Is there a way to select or finding groups that are nested together? I want to find groups that have accidentally been nested (ie, 2 or more groups that were grouped together into 1 group).

Parts of this will certainly need to be scripted.

Rhino - RhinoScriptSyntax (rhino3d.com)

Here’s a simple example in Rhino 8 BETA:

group_names_python.3dm (100.9 KB)
group_names_python.gh (19.9 KB)