[ruby-core:115963] [Ruby master Bug#20098] Wrong regexp match in ruby 3.2 and 3.3