Post picture.
Someone was to cheap to order jamb extentions or a wider jamb.
Get a measurement with something laying flat againt the wall to the jamb.
It's easyer for a DIY with few tools to just find a stock moulding that will extended it out.
Make sure to cut that foam out of the way first.
Make sure to predrill the holes and use finish nails that go into the jambs at least 1".