I'd prefer to see a more precise regex here, something along the lines of `CV_DEPRECATED\("([^\\"]|\\.)*"\)` (untested, but you get the idea). And make it a raw string literal.