Wait wat. Then how am I supposed to express exactly that? I only realized I was trans close to graduating high school. All my close friends up to that point had been male. Male gender stereotypes influenced what I did in my free time, how I behaved in class, how I saw the world.
It took effort to shed some of that. Maybe it's because I haven't heard it used in a transphobic context yet, but "I was male socialized" is, I'd have said up to this post at least, very apt.