The Course talks with regards to the ego in a way that's further than what Freud did. Freud observed the ego as obtaining some sort of price, to be a mediator in between our morals and mores around the 1 hand, and our unconscious urges and impulses on the other. https://awakening-mind.org/resources/a-course-in-miracles/