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