Some gas stoves require electricity to continue operating due to electric safety sensors that shut the stove gas off if the flame goes out. They too would be useless in a power outage because the valves would not open. So it’s not just electric stoves that would be out of luck.
If you have room to store one, a used camp stove and gas cylinder are fine for basics. No need to buy a fancy new one. Or even a gas bbq grill.