The Course talks regarding the ego in a way that may be beyond what Freud did. Freud noticed the Moi as getting some form of value, as being a mediator between our morals and mores within the 1 hand, and our unconscious urges and impulses on the other. Jesus says https://awakening-mind.org/resources/a-courseinmiracles/