Advice? Toddler peeing in bed on purpose..

My LO will be three in a week and has been fully potty trained for a few months. She has done great and only had a few accidents, maybe two being at night. She seems to have hit a sleep regression about three weeks ago and is trying everything to make sleep time difficult, stalling, taking hours to fall asleep, waking early and throughout the night. She had a legitimate accident about a week ago and I was nice of course and cleaned it up but since then she has had one almost daily while she’s falling asleep or early in the morning and she is throwing out her blankets and stuffed animal first then peeing on purpose (can see on the video monitor). She is still in a crib as we are in the middle of getting her new room ready and I am pregnant and due in about a month. She’s done great with calling me to go to the bathroom and now she’s just doing it on purpose like some kind of protest to bedtime. I’ve treated it like normal accidents until yesterday when I realized she was definitely doing it on purpose and I asked her why and told her she needs to go on the toilet, she just kind of agreed and said ok but this morning she woke up and threw out her blankets and did it again. Anyone go through this or have advice on handling this? I don’t want to punish her but at the same time I don’t know if I should keep just cleaning it up nicely when she’s doing it on purpose?!