If you read the Book of Romans you will have that questioned answered.
Fancy term: substitutionary atonement.
https://www.gotquestions.org/substitutionary-atonement.html
RE the rest of your post:
Are you ever going to quit using those verses out of context? You never go to the **very next** verses which reveal God's mercy as well as His judgement.
Readers: via bible commentary website
https://www.preceptaustin.org/ please visit the book commentary pages.
https://enduringword.com/bible-commentary/ezekiel-18/
21 But if the wicked will turn from all his sins that he hath committed, and keep all my statutes, and do that which is lawful and right, he shall surely live, he shall not die.
22 All his transgressions that he hath committed, they shall not be mentioned unto him: in his righteousness that he hath done he shall live.
23 Have I any pleasure at all that the wicked should die? saith the Lord God: and not that he should return from his ways, and live?
17 Thou shalt not pervert the judgment of the stranger, nor of the fatherless; nor take a widow's raiment to pledge:
18 But thou shalt remember that thou wast a bondman in Egypt, and the Lord thy God redeemed thee thence: therefore I command thee to do this thing.
5 Wherefore should I fear in the days of evil, when the iniquity of my heels shall compass me about?
6
They that trust in their wealth, and boast themselves in the multitude of their riches;
7
None of them can by any means redeem his brother, nor give to God a ransom for him:
8 (For the redemption of their soul is precious, and it ceaseth for ever
Whole
Psalm 49