2016 kia Sorento Engine replacement cost

The dreaded P1326 code came up on my 2014 Sportage SX.
Dealer said I get a new engine as soon as they confirm the code.
Has anyone had the warranty engine swap done? And was there any out of pocket cost?

If you opt for a brand-new engine from the manufacturer, it can be quite expensive, often ranging from $4,000 to $7,000 or more, excluding labor costs.