Ruby 3.3.5 frees regex state before raising timeout errors
engineeringrubyregexpmemorymaintenanceMatching could time out correctly while leaking native memory. The maintenance release carries a refactoring that lets callers release their state before Ruby raises the exception.