Consider Using Localized Input Masks for 'Phone' and Other Restricted Inputs (64% Aren't Taking Advantage of Input Masking) – Articles – Baymard Institute
Text Mask - an input mask library. It can create input masks for phone, date, currency, zip code, percentage, email, and literally anything : r/ javascript