Question
Please suggest a way to correctly escape regular expressions in FlexiLayout studio (Advanced pre-
search relations)
Answer
You can create a Character String element and paste the Regular Expression to the corresponding field:

Then, in the Advanced tab you are able to check options as code:

You will find already escaped regular expression here:

Then you may copy the string to the Advanced pre-search relations and modify it accordingly to your needs.