Correction to: Nature Chemistry https://doi.org/10.1038/s41557-025-01889-7, published online 14 August 2025.

In the version of this article initially published, in the Fig. 5a coumarins panel, there were errors where the labels now reading left-to-right as “L016 (Coumarin 481)” and “L017 (Coumarin 485)” appeared originally as “L017 (Coumarin 485)” and “L016,” while in the polymethines panel, there were graphical errors in the structures shown for L063 and L095. The labels and structures are now amended in the HTML and PDF versions of the article.