The Course talks regarding the ego in a way that is outside of what Freud did. Freud observed the ego as owning some type of benefit, for a mediator amongst our morals and mores over the one hand, and our unconscious urges and impulses on one other. Jesus states in https://awakening-mind.org/resources/a-course-in-miracles/