Even regular cooking or baking can release harmful gasses (your smoke alarm isn't wrong when it goes off, even if there isn't a fire), but a gas range or stove can easily cause an indoor space to be more toxic than outdoor air pollution standards allow for.
Studies have started to come out connecting higher asthma rates with rates of gas rates and some communities have started to restrict the use of gas ranges in new construction.
I first realized this might be an issue when dealing with toxic wildfire smoke and reading govt recommendations that suggested refraining from cooking during a wildfire event. 😬
Always use the vent over your stove and ideally keep a window open. I always have my air filters running on auto, and they turn an angry red whenever it’s dinnertime, no matter how innocent the process is.