What happens is you just search test?
I made an Obsidian note out of the regex documentation and arranged it into sections of syntax that is and is not implemented. Here’s a link: Regular Expressions in Obsidian (copied from mdn web docs)
You can just copy the code styled text within the linked topic into an Obsidian note and it will look and work much better. I included a linked table of contents and have shortened the text within the actual definition tables including links to full descriptions at the bottom of the note. Good luck!