I have a Nissan Rogue 2022 SV Premium and this has been and ongoing issue since the car hit 30K. The car has 67K on it and every time there is a rain even a light one there is a musty smell coming out of the AC unit. I have replaced the cabin air filter and it has not helped. I also checked the sunroof and it seems pretty sealed.
Nissan Rogue AC smells bad - causes and diagnosis
And if you hear gurgling noise after it rains from the sunroof
I’m mentioning this just so you know and look out for it in the future. Sunroof drain tubes can get clogged and water will leak into your vehicle. usually, you will find wetness on your carpet or will leak near the headliner or sunroof. if not fixed you will get a musty, moldy smell.