The Course talks regarding the ego in a way that may be further than what Freud did. Freud noticed the ego as getting some kind of benefit, being a mediator among our morals and mores on the just one hand, and our unconscious urges and impulses on another. Jesus suggests https://acim.cc