Actually, inflation is not as simple as you have described it. There is a great NPR's Planet Money episode touching the waters of why the inflation does not behave as we think it is [1].
[1] https://www.npr.org/2021/01/20/958854717/modern-monetary-the...