I am having trouble getting regular expressions working in Jira Workflow Validators. I am trying to get Issue Checkbox workflow control validation as per this link, but no matter what I try, I cannot get a regex to match with the Field "Checklist Content YAML".
Here is an example of an error message I get when doing a regex .*text.* as a test expression which to my mind should definitely trigger a match on the YAML data.

Is there some setting somewhere I need to enable regex or something? I have tried the recommended expression "(?s).*- text: first item\W*checked: true.*" to no avail, and many other regex expressions which should match fine, and some which would not match in case it was a logic thing. Everything I try gives me an error like the above one when transitioning issues with a regex validation on it.
Any ideas?