We released Ruby 4.0.9, 3.4.12, and 3.3.13, and published an announcement about Regexp compilation fixes.
https://t.co/zTemAPrS2A
If your application compiles a regular expression from an untrusted string, please update your Ruby to one of those versions.