Correction to: Nature https://doi.org/10.1038/s41586-021-03912-6Published online 27 October 2021

In the version of this article initially published, refs. 26,27,28 were missing from the print version and are provided below. In the online version, refs. 33–36 were disordered, where Coles, 2010; Rothman, 2010; Hargreaves, 2020; Li, 2015 now appear as Rothman, 2010; Hargreaves, 2020; Li, 2015; Coles, 2010 for refs. 33–36, respectively. In the last paragraph of “Extended results, Retrieved constraints” section, in the text now reading “For legacy with past works we also include the ‘classic’13,14,29,50 CCF analysis,” ref. 30 initially appeared in place of ref. 29. In the first paragraph of “Extended results, Physical plausibility assessment” section, the sentence now reading “We assess the physical/chemical plausibility of the retrieved quantities with a one-dimensional radiative convective thermochemical equilibrium53–55,” ref. 56 initially appeared in place of ref. 55. In the second paragraph of the “Physical plausibility assessment” section, the text now reading “what would be nominally predicted56,59” initially appeared with refs. 59,61. In the final paragraph of the Methods section and in the Extended Data Fig. 7 caption, ref. 67 citations initially appeared as ref. 68. In the “Extended results, Elemental abundance determination and interpretation” section, fourth paragraph, “the O-based measurements” corrects “the-based O measurements.” Further, in Fig. 2a, the lower x-axis label “log 10nH2O” was missing and has been restored. These errors have been corrected in the online version of the article.