That being said, if you're in the dev-space, I'd recommend using Raycast instead. I've dong some cool things with it, like format my commit messages, generate UUIDs, and search my bookmarks with a command (/w dev -> my company's development application with a really long URL).
Congratulations on a novel permutation of “the dog ate my meeting notification” :-)
I loved Spotlight until I had to check out several project to my computer. Now with thousands of non-own files it’s really hard to find what I want. Even if I look for my own projects, Spotlight shows the same project as it appears in several node_modules as a dependency. Find out the right one means I have to hold alt on each item. Ludicrous.
It isn’t clear to me from that text, so just in case you don’t know: you can disable Spotlight indexing for specific directories (https://support.apple.com/en-gb/guide/mac-help/mchlp2811/mac)