[ruby-core:127015] [Ruby Bug#22418] Regex counted repetition disagrees with expanded equivalent pattern