If scanner is not working but printer is working, follow these instructions i.e. update driver, restart Windows service, etc.
A quick walkthrough for getting the PS5 controller connected via Bluetooth or USB.