The Course talks about the ego in a way which is further than what Freud did. Freud noticed the ego as acquiring some type of value, for a mediator in between our morals and mores about the 1 hand, and our unconscious urges and impulses on another. Jesus claims inside https://awakening-mind.org/resources/a-course-in-miracles/