Actually it works when i put double quotes.
I was following the docs to setup Atlas in Docker, there was without quotes. But the docker setup didn’t work, but that’s another topic. Programmatically i can’t access using mongodb node.js driver, but mongosh and compass both work.