Correction to: Nature Neuroscience https://doi.org/10.1038/s41593-023-01456-8, published online 19 October 2023.

In the version of the article initially published, the first affiliation for Romain Carron was incorrect and has now been updated to Institut de Neurosciences des Systèmes, Aix-Marseille University, INSERM, Marseille, France in the HTML and PDF versions of the article.