I did this and it started working in Windows 10.
Go to Control Panel -> Programs & Features -> Right click PostgreSQL 15 (whichever version you have installed) -> Uninstall / Change -> Individual Components -> select pgAdmin -> Click next and wait for uninstall to complete.
Now download pgAdmin latest version and install and start using it