Actually at least for the Social Security COLA the CPI-W, Consumer Price Index-Urban Wage Earners and Clerical Workers , is used which includes food and energy.
Thanks for the clarification.
It’s a little confusing, because everybody I know (not a scientific sample, of course) got COLAs that didn’t even cover their Medicare premium increases, so I have to wonder where the inflation numbers are coming from.