All levels and arms of the Texas Republican Party government, including the AG, have made Texas one of the states leading the Christian-organised anti-LGBT and anti-woman culture wars in the US.
Texas Republicans have spent their time in office passing laws to control the bodies of all but non-trans men. There is very good reason why many American (and international) women will not travel to Texas on business, or otherwise.
The AG has been frustrated at court denials of requests for patient information from hospitals outside of the state (reproductive healthcare including abortion, mental health and transition care, etc.)
This detransition 'judgement' was invented by the AG as punishment for the medical system. The efficacy of this resource will be seen over time. But one cannot ignore that it is only a small part of the anti-everyone but men culture war in Texas.