Correction to: Nature Microbiology https://doi.org/10.1038/s41564-023-01503-x, published online 9 October 2023.

In the version of the article initially published, the first sentence of the Acknowledgements listed an incorrect grant number, and has been updated to read “These studies were supported in whole or in part with federal funds from the National Institute of Allergy and Infectious Diseases, National Institutes of Health, and the Department of Health and Human Services, under the following: the NIH R01 AI-111815 award, the NIAID Contract No. 75N93019C00071 (IMPAc-TB), and the Intramural Research Program of the NIH/NIAID (VRC).” This has been corrected in the HTML and PDF versions of the article.