Correction to: Nature Physics, published online 4 July 2022.

In the version of this article initially published, there was a typographical error in the x-axis label of Fig. 1b, where the label now reading “Impurity–superconductor coupling” originally appeared as “Impurity–semiconductor coupling.” The figure has been replaced in the HTML and PDF versions of the article.