For anyone coming across this in the future.
Try escaping the hyphen with a backslash:
pattern=^\d{10}$|^\d{3}([\s\-\.])\d{3}\1\d{4}$
^\d{10}$|^\d{3}([\s\-\.])\d{3}\1\d{4}$