Correction to: Nature Microbiology https://doi.org/10.1038/s41564-022-01268-9, published online 10 November 2022.

In the version of this article initially published, Bradley Pickering, Oliver Lung and Finlay Maguire were not denoted as equally contributing to the work, and Samira Mubareka and Jeff Bowman were not denoted as jointly supervising the work. The changes have been made in the HTML and PDF versions of the article.