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