Okay ... So I haven't reinstalled the firmware since my first message. M115 told me I'm using version 3.1.1 as expected. I tried running it standalone but it didn't work.

Then I reconnected the pi and DWC finally connected. 😥

I don't really get what happened here but fortunately it finally works.