make more functions for “for all regions in a region group”, here are some suggestions:
(all regions with distance (number) or lower)
just like it sounds, regions that are distanced a certain amount of pixels/modd-number-identification and nearer
(all regions with a name containing (string))
loops trough regions that contain a certain letter or sequence of letters
(all regions with color (string))
loops trough all regions with matching string in their color value
(all regions overlapping (region))
loops trough all regions that are overlapping a certain region besides the overlapped region/selected region
(all regions containing (entity))
loops trough all regions that contain a constant or specific entitity