Thank you for the information.
Unfortunately, probably only a few have this particular combination of computer and printer. If you cannot find a direct solution, it may be necessary to look for some kind of workaround.
Do you still have the 2017 iMac? If so, you may want to investigate whether that Mac could share the USB printer.
Share your printer on Mac – Apple Support (UK)
If normal printer sharing is not possible, you could perhaps carry out a few experiments with a third-party app like Printopia (https://www.decisivetactics.com/products/printopia/) on the iMac in order to at least try to print from an iPhone or iPad (whether this somehow could be extended to involving a Mac Studio as well is another matter).
For experiments with a standalone Raspberry Pi (Linux) print server:
https://discussions.apple.com/thread/255164131?answerId=259821745022#259821745022