Custom Validation Error in phone number field to limit to certain countries

Is there a way to limit through a custom validation error the entry of phone numbers in a phone number field to those from one country (US, for example)?

We’ve actually made an update so you can now restrict a phone number field to only allow the default country