How we react to those stimuli is governed by culture, or memetics. Like genes, memetic frameworks are also passed on generationally, but with a much higher mutation rate.
Genetics is hardware, which defines possible behaviors. Memetics is operating system and applications, defining actual behaviors.
I think both genetics (personality, among endless other characteristics is significantly to majority heritable and going to have different distributions in different areas) and environment/culture play significant roles.
But an interesting thing is that by the time people are adults, perhaps even before, the environmental factors have irreversibly changed them so marginalising cultural factors as "just" environmental doesn't really paint a fair picture.
For a person who's happy to travel/live just about anywhere this makes having children doubly fun, because you basically get to decide the 'cultural mold' for your children, which is really neat!
It is the major decider from the way one talks, one walks, one acts, one decides, everything.
Can it be overruled by nature? Yes, very rarely. There's always a very small percentage of people (often thought of as neurodivergent, or witches, or simply free-spirited or eccentric, all case by case) who's neurogenetics cause them to partiaLly diverge. But these are the exceptions.
This has been proven false. To name just one measure of human behavior, the Big Five personality traits are 40-60% heritable: https://www.nature.com/articles/tp201596
And essentially all of species related biology would be a 'social construct' by such logic. The difference between entire species is often poorly defined. Different species can even interbreed and produce fertile offspring such as a liger. Or take the Australian Dingo which is literally just a wild dog, but it's not classified as one for quite arbitrary reasons.
We're knowledgeable people here, so we know there's no such thing as race other than as a human artifact. As human artifact, it can certainly affect how we think and therefore how we behave.