This is exactly why state pensions are the norm in Europe, and I think many other places around the world.
Here in Portugal, your taxes accumulate pension credit similar to social security in the US, but when you retire you receive around 80% of your highest salary over your career, instead of a few hundred dollars or whatever from American social security.