Over time you get to learn that those emotions were actually acting as a teacher in your trading journey..
I disagree with this, emotion can't be a teacher, it is a punisher, a bad characteristic that must be frowned upon and avoided immediately. It doesn't matter whether you are new or old in trading, fight and win emotion, there's no alternative to that. We should not pamper it as though it is teaching us something when we can avoid it from the start. Notwithstanding, I understand what you wanted to say, it is the "failure" the emotion caused that's the teacher, not the emotion itself.
There may be differences of opinion on this, but I am sure the goal remains the same, which is for something more positive in the future. Both those who say emotions can be teachers or those who say otherwise, it's just that in this case what differentiates is the way of conveying it, but I see the goal is the same, I hope I'm right. Emotions are part of the journey and they cannot be separated from our lives at all. But without realizing it, actually when controlling our emotions we also use emotions. What I mean is this, let's say there are 2 emotions, namely negative emotions and positive emotions. When negative emotions dominate, then to be able to control them we use positive emotions to dampen them.