Build, test, and debug regular expressions
This regex matches valid US Social Security Numbers (SSNs) in formats like XXX-XX-XXXX, XXX XX XXXX, or XXXXXXXXX. It enforces SSA validation rules: rejecting area numbers 000, 666, and 900-999, group number 00, serial number 0000, and repetitive patterns (e.g., 111-11-1111). The separators must be consistent throughout the number.