Social security is nominally a government sponsored pension, but the payout ratios are weird, and it's compulsory, so I feel it's fair to call it a tax.
Same with at least the employee portion of compulsory unemployment insurance. Maybe that's generally an actuaraily sound program (I think the employer contributions may be), but in times of economic stress, payments increase and I don't think that's covered by premiums. I know there's a cap on benefits, but I'm not sure if there's a cap on contributions? Anyway, seems similar to Medicare and I'd call it a tax, too.
There's some correlation between in and out but the government isn't figuratively putting the money into a savings account for you.
That simply can’t be because what you get out is based on how long you live, which is a ‘known, unknown’
Maybe Medicare since what you contribute is only partially linked to the benefit.
But social security is basically a public pension plan. What you contribute determines your benefit. You can even calculate the benefit yourself. No different than a private pension plan.