I'm having difficulty understanding Regex logic, and I do not think codes that make up the complete phone mask with DDI, DDD, and 8- and 9-digit phones with hyphen changes when typing right in the field using for example the onkeyup event .
Follow the mask +99 (99) 9999-9999 or +99 (99) 99999-9999