Just in case this idea is helpful... I am always organizing sections of my macro by adding Groups, and I always rename them immediately after inserting. Since I couldn't find a hotkey (or menu item to let me map one) to rename a newly-inserted Group, I made this simple macro.
It uses Found Image to insert a group, then uses Rename from the right-click menu. It should work as long as the group is visible on the screen. But since it's relying on the "found image" feature, I'm not sure if your computer's font settings etc could break it.
If anyone has a better alternative instead of relying on Found Image and right click context menu, let me know!
Keyboard Maestro “[KM Editor] Insert Action Group and Rename” Macro