It’s a tax in name only. The only way SS would have not been declared unconstitutional was to call it a tax. If it was called insurance, savings, or something else, it would not have passed muster with the supreme court.
look at what happened to Obamacare. They called the provision that mandated the purchase of insurance under the plan if they weren’t covered by private insurance a tax to get the supreme court to ok it originally.