"Search key not found" error when using Find & Replace with Regex '\n' (line break)

Mojave 10.14.6, LO 7.1.4.2

Am trying to use Regex to separate a lengthy block of code into pieces (I’ve copy/pasted it into Writer for said purpose) by replacing each instance of OR( with OR( and a line break (\n).

However when I enable Regex in the Find & Replace dialog box “OR(” elicits a “search key not found” error.

If I don’t enable Regex in the dialog box, Find & Replace interprets the ‘\n’ literally, replacing ‘OR(’ with ‘\nOR(’.

Thanks for your time.

Regex :n issue.odt

Screen Shot 2021-06-12 at 6.16.25 PM.png

The ( has a special meaning in regexp, so you habe to quote it, to find (
Use

OR\(

as search expressionJ.

Of course, that makes sense. I’ve got to use \ to get LO to interpret ( literally.
Thanks.