Which pg_dump formats open?
Plain (.sql), compressed plain - gzip (.sql.gz), and the zstd (.sql.zst) and lz4 (.sql.lz4) that pg_dump 16 and later write - and tar (-Ft). Custom format (-Fc) does not: only pg_restore reads that archive and it has no WebAssembly build, so convert it once with pg_restore -f dump.sql yourfile.dump and open the result.