Reinstall Text Mesh Pro (Window > Package Manager). If that doesn't work, try importing TMP Extras (Window > TextMeshPro).