max 401K contribution

For 2023, I had employer sponsored 401K and i contributed the IRS max allowed investment of $22,500. I also have Rollover IRA account with ETrade where i have invested my previous 401K from my previous employers. In 2023, i contributed $6500 to Rollover IRA on top of $22,500 to employer sponsored 401K plan. Am i allowed to contribute this additional $6500 to Rollover IRA for 2023? I did not take any deductions when i filed my taxes for 2023. Please let me know if i can leave the additional $6500 contribution to IRA as-is or should i ask for refund of that money. Thank you.