Ego isn’t all bad. In fact it can help you improve and become the person you truly want to be.
For example some have their ego tied to religious believes. “I’m a Christian therefore I act like this” where it becomes dangerous is when you become inauthentic because you’re trying to persuade others what you’re “ego” is. Ego is your self identity so keep it to your self. You don’t need to convince any one of who you are but you.