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