Correction to: Nature Microbiology https://doi.org/10.1038/s41564-023-01585-7, published online 6 February 2024.

In the version of the article initially published, the x-axis labels in Fig. 1b and c originally read “Time post infection (d)” but have been corrected to “Time post inoculation (d)” in the HTML and PDF versions of the article.