[ruby-core:120949] [Ruby master Bug#21129] Backporting strscan fix in Ruby 3.2