selectedPhoneNumber: new FormControl('', [Validators.required, Validators.pattern('^(?:\+971|00971|0)(?!2)((?:2|3|4|5|6|7|9|50|51|52|55|56)[0-9]{7,})$')])
Error:
ERROR SyntaxError: Invalid regular expression: /^(?:+971|00971|0)(?!2)((?:2|3|4|5|6|7|9|50|51|52|55|56)[0-9]{7,})$/: Nothing to repeat