Correction to: Nature Microbiology https://doi.org/10.1038/s41564-025-02166-6, published online 10 November 2025.

In the version of the article initially published, in the first paragraph of the Results, chloramphenicol was described as a “beta-lactam antibiotic” but this should have read “broad-spectrum antibiotic”. This error has been corrected in the HTML and PDF versions of the article.