Failed to restored indexes using mongorestore - MongoDB
For the people who will come here in the future the issue was, I was using MongoDB 4.0 on the local and server was on 4.2: 

Starting in version 4.2, mongodump uses Extended JSON v2.0 (Canonical) format for the metadata files. To parse these files for restore, use mongorestore version 4.2+ that supports Extended JSON v2.0 (Canonical or Relaxed mode) format. 
For details please see "Metadata Format" section on this : docs.mongodb.com/manual/reference/program/mongodump