If anyone needs it for scoping this regex will include all computers _not_ supported by macOS Ventura. So when new models are released you won't have to update the regex.
^(iMac[1-9],\\d|iMac1[0-7],\\d|Macmini[1-7],\\d|MacPro[1-6],\\d|MacBook[1-9],\\d|MacBookAir[1-7],\\d|MacBookPro[1-9],\\d|MacBookPro(10|11|12|13),[0-5])