Basic and Diluted Net Loss per Share - Antidilutive Securities (Details) - shares
12 Months Ended
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Preferred shares - weighted average      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of earnings per share (in shares) 0 0 86,731,855
Share options - weighted average      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of earnings per share (in shares) 27,465,692 39,790,418 39,846,432
Restricted share - weighted average      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of earnings per share (in shares) 369,050 204,129 479,275
Restricted share units - weighted average      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of earnings per share (in shares) 942,501 471,680 32,870
VPP shares – weighted average      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of earnings per share (in shares) 343,984 72,257 39,311