Some psychoanalysts like Kohut and Kernberg have theoretical ideas about it. Sometimes I think that the word, and whatever idea exists behind the idea, is a sociocultural construct more than anything else.
That is not to say that we are not individuals with our own personality tendencies.
Here's an essay: The Self in Self-Help - We have no idea what a self is. So how can we fix it?