I seem to recall that at one time nurses were told to keep their nails short with clear polish only if any. I don’t think that rule is enforced anymore.
We were taught that, too, but it wasn’t enforced. Nurses with long fake painted nails are, IMHO, either not too bright, or just don’t care if they expose themselves or patients to who knows what.