The Course talks about the ego in a method that's outside of what Freud did. Freud saw the ego as possessing some form of value, as being a mediator involving our morals and mores on the a single hand, and our unconscious urges and impulses on the opposite. Jesus suggests https://awakening-mind.org/resources/a-course-in-miracles/