I had the same issue trying to install drivers for an HP printer. The installer wouldn't run and displayed "This update requires macOS version 12.0 or earlier" .
I came up with a very hacky workaround (do at your own risk). My installer package could be very different from yours, but I think that these steps might work for you too.
Extract the pkg file:
pkgutil --expand /Volumes/HP_PrinterSupportManual/HewlettPackardPrinterDrivers.pkg dir
Open the file "Distribution".
Look for the following lines and change 12.0 to 12.0.1
if (system.compareVersions(system.version.ProductVersion, '12.0') > 0) {
my.result.message = system.localizedStringWithFormat('ERROR_25CBFE41C7', '12.0');
Then, repackage it:
pkgutil --flatten dir newpkg.pkg
Now run the installer again. In my case, I was able to use the printer.
I know that you should never ever do this, but I think it is reasonable to assume that Apple did not perform substantial changes to APIs etc...