The Course talks with regards to the ego in a way that's further than what Freud did. Freud noticed the ego as acquiring some kind of value, being a mediator among our morals and mores over the one hand, and our unconscious urges and impulses on the opposite. Jesus states https://awakening-mind.org/resources/a-course-in-miracles/