Since I often use similar expressions when sorting selections from data ranges by formulae, I was interested in the question though I didn’t actually encounter the problem as it was presented here. “Be prepared!” was the motto.
I attach a file dealing with the matter. It demonstrates a workaround generally useable with MATCH(), COUNTIF() and its relatives and it contains some experimental material concerning SEARCH(). You’re invited to have a look if interested.
Sorry! As a newby I am seemingly not allowed to attach files.
I uploaded the file therefore to my own webspace. Edited: David fixed the attachment issue. Thanks!]
Attached: RegexOffLocal002.ods