Correction to: Nature Communications, published online 23 May 2022.

The original version of this Article incorrectly included the 6th author Cyriel M. A. Pennartz as a corresponding author. The correct version lists only 7th author Umberto Olcese as corresponding author. In addition, the original version of the Article omitted to include a statement to indicate that Cyriel M. A. Pennartz and Umberto Olcese jointly supervised the work. This has been corrected in both the PDF and HTML versions of the Article.