Hello,
If your computer printer driver is damaged or outdated, you may not be able to search for the printer when adding a printer. It is recommended that you download the latest driver for the printer from the official printer website and install it. In order to avoid the firewall blocking the communication between the printer and the computer, causing the printer to be unable to be recognized by the computer, it is recommended that you temporarily turn off the firewall, search for the printer, and then turn it back on.
I recommend that you refer to the following link for troubleshooting:
Fix printer connection and printing problems in Windows - Microsoft Support
I hope the above information is helpful to you.
Best Regards
Zunhui