... The official inflation rate does include the prices of food and energy.
Then the media reports the "core inflation rate", with food and energy stripped out supposedly because they are "volatile". And everyone important pays more attention to the core rate than the official rate.
BTW, your SS benefits are adjusted by the official rate, not the core rate.