ES 5.6.3
elasticsearch.yml has script.painless.regex.enabled: true
Caused by: java.lang.IllegalStateException: Regexes are disabled. Set [script.painless.regex.enabled] to [true] in elasticsearch.yaml to allow them. Be careful though, regexes break out of Painless's protection against deep recursion and long loops.
Now what?