(((crazyblindsided)))
I think that you have a couple of things going on here at the same time. First, you have the divorce and all of its collateral fall out. Second, you have a 17 year old who is trying to become an independent adult.
My GF's son, for example, has asked his mother if he can move in with one of his friends. Apparently, he feels that his mother is "too strict" because she won't let him go out and party with his friends because he just caught COVID (he had a known exposure but then tested negative. Two days later he had respiratory symptoms, a fever, and had lost his sense of taste).
My advice is this: be the best parent that you can be at all times. Make sure that your kids know that you love them. Be their parent, not their buddy.
Parenting is a long game and it's hard even without divorce and all of its associated bullshit.
I have serious issues with 2 of my 3 kids since the divorce. DD13 was the worst because she and I had always been close and when she turned on me it was very hurtful. But, the thing is... she's smart and she figured out that her mother was lying to her. She had been told that I was a dad who did nothing, but then over several months her memory kicked in and she remembered all of the things that we did together (and still do).
DD15 is a whole other problem. I'm pretty certain that she has Aspergers, which means a couple of things. First, I think that she's especially susceptible to the BS being spewed at her by STBXW. Second, she's handful for STBXW too.
Regarding the previous sentence, I'm guessing that your daughter is a handful for her father too.
Related to all of this, you should get into the habit of talking to your kids about their time at their father's. It's hurtful to them if they feel like they have to keep quiet about that stuff. Imagine never being allowed to not talk about what happened at school. That would be really weird and hurtful, from their perspective.
Me: Crap, I'm 50 years old. D-Day: August 30, 2016. Two years of false reconciliation. Divorce final: Feb 1, 2021. Re-married: December 3, 2022.