When I was a nipper in California in the 50s, there was a law that required every government employee to take an oath of loyalty to the Constitution. This even extended to kids who worked in school cafeterias to get a free lunch (imagine if a kid didn’t have money for lunch, he/she had to work for it). Anyway, that law was struck down, so I have no doubt that this one will be too.
I took the oath in 1971. I think it was communist Angela Davis who got it thrown out when she was hired at Cal.