The yield curve is a sentence, not a signal
An inverted curve means short-term debt yields more than long-term debt — the bond market saying it expects rates to be lower later, which usually means it expects weakness. It has preceded most recessions. It has also inverted without one.
What's more useful than the shape is the reason for it. A curve that inverts because short rates are climbing to fight inflation says something different from one that inverts because long rates are collapsing on growth fears. Same picture, opposite story.
Read the cause, not the chart. The chart looks identical either way.