it doesn't have handle the money you paid into it as your personal savings. when there's were more people paying into the system than take out money, the collected money is saved and invested into low risk stuff like t-bonds. that led to a fairly substantial surplus but over time the size of the ratio of recipient/contributors changed so that these saved funds have to be used to maintain the payouts. once that saved surplus is spent social security can't meet all payouts since its collecting less than it pays out and as the population grows older the expenses only grow. as it currently stands this will happen around the early 2030s. the only solution is making smaller payments or raising amount people pay into the system.  also i'm fairly sure but don't 100% confident about this, that social security is specifically set up so that the funds going into and out of the system have to earmarked as social security money. like its meant to be a self-sufficient system that doesn't leech of other government systems or can be used to fund them either. so you can't just raise tariffs, lower military spending or cut funding to npr or whatever, you have to actually fix the social security system itself.
Sweden