Puppy started peeing in the shared bed after spay

We found Cleo 3 months ago- no chip,not found on any lost dog posts, but she seemed pretty trained for 6 months old (she’s now about 8)No idea what kind of dog she is but she’s clearly a pit mix. She was ruff when we brought her home (skinny, scared). But we got her all her shots and everything and she’s safe and comfortable She’s been really good about going to the door when she needs to go out, or if she had an accident it was near the front door, she’s been doing good the last two months! She sleeps in the bed with us. She has a crate in the living room which she’s comfortable going in and out of and naps in when she feels like it. We got her spayed 9 days ago and twice this week she’s peed in our bed (the human bed!). She’s never peed or pooped in her crate and she’s never had a problem letting us know she wants to go out! But it’s like extreme potty training regression! Anyone else dealt with this?