Dog keeps peeing in baby’s room

I’ve HAD it with one of our dogs. I love him but I just don’t know what to do anymore.

He keeps sneaking into our baby’s room and peeing on all of her things..

We used to let our dogs hang out in her room, but at times our male dog would run to one of her toys and pee on it. Now her room is off limits, but he sneaks in and pee everywhere when we accidentally leave her door open (it’s our fault, I know). This time it’s soaked all the way down into the carpet pad and I can’t get the smell out. 🤢 I’ve shampooed it multiple times.. I just don’t know.

Any advice on how I can help my dog and on the carpet?