Pattern values used as table/set indices are stored in serialized form using just the pattern text, but re-creating the value from that didn't fully initialize/compile the regex matcher after (re-)creating it from that pattern text.