It sounds like you're describing a solar flare. Solar flares are intense bursts of radiation caused by the release of magnetic energy associated with sunspots. They can produce bright lights on the Sun and release significant amounts of high-energy particles and gases into space. These flares can affect space weather, impacting satellites, communications, and power systems on Earth.
Additionally, when you're mentioning ejections of particles and gases, it could also refer to a coronal mass ejection (CME), which is a significant release of plasma and magnetic field from the solar corona. CMEs can accompany solar flares and can cause geomagnetic storms when they interact with Earth's magnetic field.
Both phenomena are crucial components of solar activity and have significant implications for space weather.