Submodules site-wide search

We’re currently using submodules from quite a few projects and things are working fine… until we move/rename submodules. At which point we need to hunt down all the references within the same gilab site and change them… Thus far it’s been a manual process relying mostly on tribal knowledge… is there a better way to refactor module names clean and across the board?