Stock-based compensation - Summary of significant valuation assumptions (Details) - 2020 Stock Option and Incentive Plan |
12 Months Ended | |
|---|---|---|
Dec. 31, 2022 |
Dec. 31, 2021 |
|
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | ||
| Risk-free interest rate, minimum | 1.47% | 0.59% |
| Risk-free interest rate, maximum | 4.22% | 1.34% |
| Expected volatility, minimum | 81.36% | 80.45% |
| Expected volatility, maximum | 88.75% | 86.20% |
| Expected dividend yield | 0.00% | 0.00% |
| Minimum | ||
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | ||
| Expected option life (years) | 5 years 6 months | 5 years 6 months |
| Maximum | ||
| Share Based Compensation Arrangement By Share Based Payment Award [Line Items] | ||
| Expected option life (years) | 6 years 1 month 9 days | 6 years 1 month 9 days |