pg_restore: error: could not execute query: ERROR: could not open extension control file "C:/xampp/pgsql/13/share/extension/postgis.control":
Best I can do is point out that the error implies that you haven't installed postgis as part of the PostgreSQL server. You will need to install the external module into the server before restoring a database that uses it - namely via executing CREATE EXTENSION.