Correction to: Nature Immunology https://doi.org/10.1038/s41590-025-02301-9, published online 28 October 2025.

In the version of this article initially published, the surname of Musa M. Mhlanga was misspelled (Mhalanga) and is now amended in the HTML and PDF versions of the article.