Door Jam Rust Damage Advice

Hey everyone. I'm not quite sure what this it's called exactly, and I'll post a picture so you can see exactly what I'm talking about, but the part the door grabs onto to stay closed is broken. The part itself seems fine, but the metal where it's attached is broken. Sorry for my poor description, but basically I'm looking for some advice as to how to fix it? Thank You.

View attachment 1714980586


2 options, make you a patch and cut out the damaged area or buy you a new door jam panel from amd and weld it in