Error restoring mongoDB because of diagnostic.data

I’ve ran mongodump --uri to a specific location.
Then I ran mongorestore and the name of that specific location where I dumped the files.
Now I can’t run the restore because of an error: Failed: error scanning filesystem: invalid database name ‘diagnostic.data’: illegal character ‘.’ found in db name ‘diagnostic.data’.