Hi, I finally solved the problem.
The issue was that I was using MobaXterm to acces WSL2 and Moba requires an X server. I was using VcXsvr (aka Xming), and to make it work I followed some instruction on GitHub that told me to add a line to ./bashrc to change my DISPLAY variable, indeed my DISPLAY variable was set to 10.50.0.254:0.0.
So I removed that line from .bashrc, stopped using MobaXTerm and used the dafault Ubuntu terminal that comes with WSL2. Now everything works as you said without using Xming.
Thank you very much