If your router supports it you can provide the printer a bogus default gateway and DNS. That should prevent it from having internet access. You could also likely do this in the printer if it has a way to configure it directly.
A firewall rule that blocks access would be better but will depend on what you have available.
VLAN without internet access is a step above that.
A Raspberry pi print server will work as well by bypassing any network connection whatsoever
Or you could just use a long usb cable and not deal with any of it.