The Windows 10 driver for HP 1020 works in Windows 11. I have just finished verifying it with my son's computer.
My son uses Windows 11 and an HP 1020. I uninstalled the printer driver and, to make sure that Windows will not automatically install the driver via the internet, I disconnected the LAN port and reinstalled the driver. It works. The driver is the one for Windows 10 that I downloaded from the HP site last year. That was before he upgraded to Windows 11.