The original regex was `[1-2][0-9]{3}\-[0-1][0-9]\-[0-3][0-9]` But the contant regex in the general sol had an extra escape character. `string public constant regex = "[1-2][0-9]{3}\\-[0-1][0-9]\-[0-3][0-9]";`