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