Tried a lot of solutions, but all I had to do was remove de { path: "..."} configuration object.
This:
import dotenv from "dotenv"
dotenv.config({ path: "../.env" })
Turned into this:
import dotenv from "dotenv"
dotenv.config()
Even though my server.js file is not in the same directory of my .env f