I blockquoted “Core inflation excludes food and energy costs.” from the OP. It’s not my contention.
There is a measurement referred to as “core inflation.”
https://www.usinflationcalculator.com/inflation/united-states-core-inflation-rates/
There is a different set of measurements called Consumer Price Index.
“In April, the Consumer Price Index for All Urban Consumers rose 0.3 percent, seasonally adjusted, and rose 8.3 percent over the last 12 months, not seasonally adjusted. The index for all items less food and energy increased 0.6 percent in April (SA); up 6.2 percent over the year (NSA).”
You’re right. I missed the “Core” in your statement. What I hate is when people see the CPI and then claim that doesn’t include food and energy. I incorrectly accused you of doing so.