However, it's important to understand that this extreme temperature is confined to a very small region within the flare. The temperature of the surrounding solar atmosphere, or corona, is much lower, typically around 1 million degrees Celsius (1.8 million degrees Fahrenheit).
So, while the core of a flare is incredibly hot, the overall impact of a flare on the Sun's temperature is relatively minor.