Instead of saying someone has had a “sex change”, grammarly.com recommends using the more respectful term “(gender) transition” (for example, from man to woman or from female to male).