I use to clean carpets for a living(one of the poorer paying jobs I've ever had

I'd pull that carpet back and let the foam and the backing ait out for 1-2 days at least, then lay back down.
That should dry it pretty good.
If it's ever black etc on the backing, use a mild bleach solution/H2O2 to kill the bacteria.
Pet urine issues where a favorite and we made good money when we found that.
Oh those fun jobs of yesterday
Regards,
Tom Barr