Suggestion:  Since you are already use these same regex to make <code>VIRSH_COMMAND_GROUP_CACHE</code>, maybe just check with word regex but <code>if mobj_command_word in help_command_group( cache=True, **dargs): continue</code>.  Searching list is much faster than doing another regex.

I only worry about performance issue here because virsh help is used in many many places.