Like most Disney movies, Tangled has a happy ending where good triumphs over evil, but Mother Gothel's fate creates a major plot hole for the animated classic. At the end of Tangled, Rapunzel transforms from a young woman without any agency into a brave heroine who can finally live life on her terms, and this symbolic act is embodied by defiantly cutting the long locks that Mother Gothel had been using to keep herself young. At the same time, Rapunzel's act of transgression also meant she lost the healing powers that she'd used to help so many people in the kingdom after her escape from Mother Gothel's tower.
https://screenrant.com/tangled-ending-plot-hole-mother-gothel/