Inflation rates picked up momentum in the U.S. in 2021, but prices have surged in other countries since then.