After you enter your Form 1099-R, you should see a question regarding having made nondeductible contributions to your IRA in previous years, you have to answer yes to that question:
Then TurboTax will ask you for your balance in IRA accounts and the end of 2023 and 2024.