Correction to: Nature Communications https://doi.org/10.1038/s41467-025-58961-6, published online 14 May 2025

In the version of the article initially published, in the Results “Extracting shared environment contributions” section, there were mistakes in figure citations. The first three citations to Fig. 3 in the current version originally cited Fig. 2, while the citation to Fig. 4 originally cited Fig. 3. The errors are corrected in the HTML and PDF versions of the article.