Russia has been doing asymmetric operations, e.g. buying the US republican party was a lot cheaper than winning a war against the US but effectively was almost as good. Helping far-right, anti-democracy, anti-EU, anti-NATO politicians worldwide has been destabilizing. Organizing both the racist and the anti-racist demonstration at the same place and time has kept people and governments distracted. They do a lot of mafia style things to bribe, intimidate and kill people into doing what they want. Turns out going after politicians is more effective than going after military officers because counter-intelligence is more hesitant to act when they suspect a politician of working with/for Russia.
Another thing is that the US military has been trained to be deathly afraid of appearing to have an opinion on politics, and this is both good and bad.
Russian defence spending is about 1/12 that of the US, but between having lower grade equipment, conscription and cheaper domestic prices they probably get 2x to 3x bang for their buck, at least on paper. As we can see in Ukraine, in practice much of the bang is over hyped, but it still gives them the brute muscle to do a lot of regional bullying.
The reason everyone thought they were a great military power is because the Soviets were presumably a great military power with a large army and a lot of hardware. Tanks, aircraft, artillery etc etc. And when it all fell apart the Russians inherited the lion's share.
Russia has lower costs in terms of personnel, lower wages and the like will somewhat lower the overhead of their military. But I think everyone overestimated how much that would help. See, raw materials costs the same around the world more or less. Titanium costs the same in Russia as it does in the US. Same for steel or any other resource that is on the global market. So Russia can only build a tank so much cheaper than Europe or the US can, but there is a floor to that price. On top of that they have been under sanctions for years for a lot of important things they can't make domestically like advanced semiconductors.
Then there is the fact Russia is a well known kleptocracy. They may very well have nominally lower personnel costs but that's likely balanced by much higher corruption.
And when you think of the sheer size of their military, all of those nuclear subs. All of those ICBMs, there are a lot of expensive things there that will easily take up large chunks of their budget.
I think much of the conventional side of the Russian military was left to rot and much of what we were shown pre-invasion was just that, a show. T14 functionally does not exist. Same with Su-57. They are cool show pieces but the real military are using 30+ year old hardware that has been piecemeal upgraded and not well maintained.