What is ego?
According to Vedanta, ego is simply wrong identification. Ego is confusing the ever changing Body to be the ‘I’ which never changes.
So, when you have this ‘miss-identification’, when you think you are X, Y, Z, you have an ego. When you don’t miss-identify the formless ‘I” with a form, you don’ have an ego.
Ego is ‘momentary’ ‘ignorance’ and nothing more.