Correction to: Nature Communications https://doi.org/10.1038/s41467-025-65449-w, published online 25 November 2025

In the version of this article initially published, due to a mistake during figure preparation, the representative image shown as Fig. 5a, MRSA ATCC 33591, was an incorrect version. For comparison, the original and corrected images are available as Supplementary information accompanying this amendment. The figure has been updated in the HTML and PDF versions of the article.