[ruby-core:113882] [Ruby master Feature#19725] Improve the match cache optimization to support look-ahead and atomic groups