Deductions & credits

If the fees are paid in 2024 then you can only enter the expense on your 2024 tax return.