I think the OP is an American. For some of them socialism is anything not sanctioned by Ayn Rand.
That's pretty much how it's been since at least the 1980s. Reagan and his followers tended to favor something more akin to anarcho-capitalism or a kind of "Mafia economics."
This line from the movie
Goodfellas represents (in my view) the typical mindset of capitalists these days:
For us to live any other way was nuts. Uh, to us, those goody-good people who worked ****ty jobs for bum paychecks and took the subway to work every day, and worried about their bills, were dead. I mean, they were suckers. They had no balls. If we wanted something, we just took it. If anyone complained twice they got hit so bad, believe me, they never complained again.
A lot of people have this mindset. Not necessarily literally organized crime, as in the movie, but the same basic Darwinian mentality that "only the strong shall survive." (Or as Heinrich Von Treitschke put it "the weak and cowardly perish, and perish justly.") That puts capitalists in the same ideological ballpark as nationalists, which is why I don't idolize or praise the capitalist system as many Americans do. I don't believe in the capitalist system because I see it as morally bankrupt and self-destructive. It's a system based on social Darwinism, just as nationalism is, and just as it has done historically, capitalism will tend to lead to and justify nationalism. The two World Wars are proof of this.
Of course, many capitalists might argue that today's capitalism is different, since it seems more benign and restrained by laws and regulations. Most people nowadays seem to agree that the bad old days of 19th century laissez-faire capitalism (which included sweatshops, slavery, genocide, and other atrocities) would not be the kind of capitalism we want today.
Liberals and moderate Democrats/Republicans seem to favor a kind of "woke" capitalism, which still favors free market economics while demanding regulation and oversight by government to ensure that there is a level playing field for all. They ostensibly view life as some kind of parlor game, like Monopoly, believing that everyone should follow the rules and all be good sports about it. If some people end up wealthier than others, it's only because the wealthier worked harder or had better skills or were genetically superior - something along those lines.
However, along the same lines, liberal capitalists tend to advocate for social programs, aid to the poor, UBI, nationalized healthcare, and other things often deemed "socialist" by their more conservative cousins. Although, ever since the Reagan era, liberals have had to deal with much more greedy, mobbed-up, amoral, nihilistic elements in politics and business, who have been more reckless and throwing caution to the four winds. The liberals have mostly given in to the conservatives on foreign policy and fiscal issues, while doubling down on social issues and identity politics as their bread-and-butter. This has been churning for the past few decades now, leading us to where we are now, in terms of our current political landscape and overall popular culture.
As for Ayn Rand, I can't say I'm a fan, although I've stumbled across those who seem to be really devoted Ayn Rand fanatics, almost to the point where they seem like some kind of cult. I'm not sure what the fascination is, as there are quite a few ardent capitalists who aren't fans of Ayn Rand and don't really like her that much. But I have noticed that capitalists tend to argue very passionately in favor of capitalism over socialism.
Another aspect of this is that, throughout the Cold War and beyond, capitalism has become closely connected to and associated with Americanism and patriotism. In this way, anyone who is seen as against capitalism is viewed as some sort of "foreign agent" or "enemy." So, there's always been this "McCarthyesque" element which tends to foul the debate.