Recognize by UN. It's not even legacy. The legacy part was about « The use of UN recognition » to refer to countries (that's a new definition). Not anything like it's a country that should not exists, I apologize for any bad wording.
Source: https://www.un.org/en/about-us/non-member-states