Fur baby question - regression ?

Jo • First time mom to baby boy
For all those mamas who also have fur babies :
Has anyone had their dog recently regress with behaviors ? My almost 2 year old cairn terrier has recently been having almost everyday accidents (pee). We are testing her for a uti to be sure, but I have read that dogs can sense changes coming and maybe start to act out.
Any resources or advice would be appreciated! 25 days left until baby ! (Hopefully)