Just use a proper IDE. It doesn't care about how your code is structured and can easily show you what you look for in context.
(And other tools like symbol search https://www.jetbrains.com/help/idea/searching-everywhere.htm...)
and it also does not magically guess what is in modules you haven't fetched yet. (I use LSP when I can)
Of course it can't know about non-existent sources. But when the sources are there, it's light years ahead of a simple text search that is grep/ripgrep.
But modules can be in different repositories I haven't cloned yet.