[ruby-core:121758] [Ruby Bug#21288] StringScanner#named_captures overrides matched captures with unmatched captures