I'm experiencing the same problem with my 2021 F-150 Powerboost. This started when my truck was still under warranty. Every time my truck gets wet, it develops a moldy smell.
I've contacted Ford. They initially offered me a 3-year, 36k-mile extended warranty, but then they told me a week later...