Dota 2 in Steam through nixpkgs unable to ping any regions but works fine through Flatpak

I had dota on flatpak but I removed it together with steam. Wanted to play a few games this weekend and I decided to install it through nixpkgs. The install works fine up until the point I have to connect to a server.

It stays like this forever. When I press play it says unable to connect.

If I start the game without trying to ping but instead I select a region and click play it finds a game and I can click accept and as soon as everyone accepts I get into the hero selection screen just to get kicked out unable to reconnect.

It doesn’t seem to be the firewall.

How can I diagnose this?

I just installed it through flatpak and here’s how it is: