RMD was not withdrawn

RMD was not withdrawn in 2022 and no 1099-R was sent.  I am doing the 2022 return and the 1099-r is listed because I pulled the info from 2021. Do I delete the 1099-r for this IRA since I didn't receive it for 2022 since RMD was missed?  RMD is being remedied in 2023 and being withdrawn.  Is the missed 2022 RMD accounted for in the 2023 return since it was withdrawn in 2023 and nothing is entered on the 2022 return? The RMD for 2023 is already withdrawn.  So how is the missed 2022 RMD and the 2023 withdrawals noted on the 2023 return?  I know Form 5329 needs to be filed.  Is the being filed in 2023 when the 1099-R is received?  

I am not sure what needs to be done on the 2022 and 2023 returns to make sure I account for the RMD's correctly.  Thank you for your help.