Group Other Values in bucket not working

Hello, guys...

Could you help me? I'm trying to make a String script field also using the group other values in a bucket select, but for some reason this is not working. The pic below show the problem . Am I doing anything wrong?

This is indeed a bug. I've filed a report here: https://github.com/elastic/kibana/issues/48570