Test, validate and match regular expressions
Matches Russian SNILS numbers (СНИЛС) formatted as three groups of three digits separated by hyphens, followed by a two-digit control number (e.g., 123-456-789 00). The character class before the control digits accepts a hyphen, space, or literal pipe character — the pipe likely being an unintended mistake where an OR was intended. With the global and multiline flags, it validates or extracts multiple SNILS identifiers across lines in documents and forms.