PG database migration from Heroku not working

Hi,

My local Postgres is version 14.5, but I am still getting the same error. I am running the command through SSH into my Fly app, so is there a way I can upgrade the pg_dump command?

Don’t really know where I am going wrong.

Someone else had the same issue as me here: pg_dump mismatch