Companies are now grappling with whether to raise prices at a time when consumers are already reeling from a prolonged period of inflation.