function hasFeedback(modelValue, regionCode) {
  const AwesomePhoneNumber = PhoneUtilManager.PhoneUtil;
  let invalidCountryCode = false;

  if (regionCode && modelValue?.length >= 4 && modelValue?.length <= 16) {
    let pn;
    try {
      pn = AwesomePhoneNumber.parsePhoneNumber(modelValue, { regionCode });
      invalidCountryCode = pn.regionCode !== regionCode;
      if (invalidCountryCode) {
        return 'invalid-country-code';
      }
      // eslint-disable-next-line no-empty
    } catch (_) {}
    // too-short/too-long info seems to be not there (we get 'is-possible'?)
    const enumValue = !pn.valid ? pn.possibility : false;
    if (enumValue === 'is-possible') {
      return 'unknown';
    }
    return enumValue;
  }

  return 'unknown';
}
@param {string} modelValue
@param {RegionCode} regionCode
@returns {false|'invalid-country-code'|'unknown'|'too-long'|'too-short'}