Your clarification is correct. However, Core CPI is what’s used to calculate COLAs, if I am not mistaken. That screws pensioners.
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.