Generalized symmetries and Noether’s theorem in QFT