Blocking the induction of Foxp3+Helios+ Tregs with the short synthetic peptide P17, an inhibitor of TGF-β, impaired resistance to pneumococcal infection and contributed to bacterial dissemination. Here, IKZF2 is linked to pneumococcal infection.