Writer macro to select multiple words

I am editing documents and I need to search for and check a list of words. At the moment I run multiple searches which is tedious. I’d like to write a macro to highlight all words so I can just scroll and review.

My initial though was to ‘select’ all the words in a loop but that doesn’t seem to work like it does in VBA.

My current solution at the moment is to run a search as a regular expression with the search string set to all the words together like this,

rxStr = "\<Words\>|\<I'm\>|\<looking\>|\<for\>"

It works fine but I don’t know if this will break as I keep adding words.

Any suggestions/ideas?

Thanks,
C