Let us know if you got it fixed. I had a similar issue with my 2017 Lincoln MKX. I found that water was leaking in through the body plugs under the rear taillights. I had a mechanic seal the leaks and replace all of the wet carpeting. It was a big job, but it was worth it to fix the problem.
I recommend having your car inspected for leaks if you notice any water in the interior. It's better to catch the problem early before it causes more damage.