Eliminating ReDoS with Ruby 3.2

Ruby