Ruby 3 removed webrick and sorted set. We rely on the former in rspec tests and rely on the latter to keep track of resources during catalog application.
Merged to main in https://github.com/puppetlabs/puppet/commit/f612975357d550de90f900b774e8dda3a8fae56e
Additional changes are still needed to drop sorted_set in puppet, so leaving open.