S corporations are cash basis taxpayers and, as such, report income in the tax year the income is received and deductions in the tax year the expenses are paid.
As a result, your S corporation could reimburse you for your expenses this year (in 2023) that you incurred in the previous year and deduct the reimbursement on the next return (1120-S) it files.