You're right. It's a bit .. special. OTOH if want an exact match of a C++ class method you might be aware of using the leading colon..

However, I've added the generic regexp chars time ago to cope with use cases like that just a bit better.
A possible approach could be to add some language specific additional delimiters. Up to now
ols is merely language agnostic.
Please keep me informed if you find a better solution.
BTW: When not using 'strict word order' (see context menu>More Options) you could also append ':w' separated by a SPACE to the existing 'write$' pattern to eliminate some more ambiguous matches since the parts of the pattern are ANDed together on filtering.
Thanks for the feedback, HS2