It sort of only matches whole words as far as I can see.
It just seems that it doesn’t count non alphabetic characters as part of the word.
E.g. like here:

I haven’t seen an example where it only shows a partial match like “[git]lab” or so.
BTW. thanks a ton for your and all the others work. Obsidian is already quite amazing.