In California, most teachers have paid into Social Security. Some for decades. But we are not allowed to collect benefits.
That's one reason that ex-military & second career people avoid teaching: They don't want to lose their SS benefits.
And we NEED those people in the profession!