I think my answer was unclear, I donāt think you can use a regex to do this in Obsidian, though Iād love to be corrected.
The regex you would need to use would have to use the options /smi as you correctly surmised. However, Obsidian doesnāt just ignore those options, it assumes they are extra text to search for. If you copy the regex you used into the search bar and click the question mark button, Osbidian will explain what it is actually searching for:

Here, you can see that itās trying the regex AND the smi as text to look for.
So, you canāt use the regex options, which you need for this search. Hence you canāt use a regex for this.
There may be other options but I donāt think a regex is one. Iām in the habit of writing a quick Python script for some Obsidian purposes but it might be possible to use one of the community plugins in some way, perhaps by changing the layout of what youāre searching for.
Sorry I canāt help more.