Not a woman but have lived through the stuff associated with this in my marriage.
My wife is on anti-depressants (Paxil) and stayed on them during both of her pregnancies. As it's a different drug there's probably not a direct correlation with the side effects as I don't know those associated with Zoloft. With Paxil there is the potential for heart development problems during the pregnancy so it had us concerned.
The OB had no worries in our case, he had seen many women go through pregnancy on the drug and had not seen the side effects emerge though he admitted they could happen. He did, however, request a couple of extra tests to keep an eye out for issues if they developed.
The Psychiatrist wanted her to absolutely stay on the medication. His point was that the pregnancy itself would be hard enough to deal with due to the changing hormones and all and that the side effects of withdrawal and the emotional toil would cause more harm than good. Specifically in our case he was quite concerned about suicide as this is where she would go when off of the medication. And that just wouldn't be a good outcome to say the least.
The truth here is that we had decided on no biological children due to this stuff however where we live there is a 10 year wait list for adoption due to the lack of resources. On top of that we applied when I was 32 and she 30 and there is ageism here within the system where they don't like to place young children with families above the age of 40. So, we rolled the dice.
Even still, the emotional toll during the pregnancies was crazy and the postpartum depression came after, there was a lot to deal with and medications had to be tweaked to try and get on top of that so it wasn't an easy road. My only advice is to make sure everyone involved is watching out for bad signs and keep on top of them with the professionals.
In the end everything worked out, we have two beautiful thriving boys. I hope the same works out for your daughter (not necessarily boys but a thriving child