[ruby-core:124485] [Ruby Bug#21824] performance regression in regexp matching after update to 4.0