Potty training help!

My son just turned 3 at the end of December and I’ve started getting more serious about potty training especially since I’m now pregnant with baby #2.

I’ve been leaving him naked during the times that were home and he does good making it to the potty to pee, but if I put underwear on him, he always pees in them. I even tried just pants today without underwear and he still peed. He knows when he has to go because he doesn’t have accidents when he’s naked. I just don’t know where to go from here. He doesn’t even care when he pees in the underwear or the pants 🤦🏼‍♀️