Enabling Painless Regex without Circuit Breaker

According to the documentation of ES, we can enable script.painless.regex.enabled in the elasticsearch.yml file. I have tried to enable this in the opensearch.yml file, but it is not enabling painless and regex without the circuit breaker.

Does anyone know how to enable script.painless.regex.enabled in the opensearch.yml?

I see that script.painless.regex.limit-factor works in opensearch.yml, but the regex ciruit breaker should be disabled when setting script.painless.regex.enabled to true. I see this is not happening.