Yes by law in 2050, that's for both cooking and heating. Phasing out has been going on for at least 5 years already. Like I said in another thread, NG is the new coal, as in treated as such. New homes in NL don't have a gas connection since 2018, and when someone leaves a (social housing) rental its gas connection is replaced before a new renter gets the place. About 3 years ago a non-SWAT team entered my kitchen to replace the gas connection with a power outlet suitable for stoves. I now big 5-prong power connector behind my stove. I didn't actually have it replaced and still cook on gas (not ready to replace my oven yet...) so not quite a ban yet. Gas used for cooking is just a very small percentage of the total. Replacing it is often a side-effect of replacing heating (with among others heat pumps) and/or installing solar.
When coal was replaced with very very cheap gas (both locally sourced and even cheaper Russian gas) the energy used by appliances and heating systems wasn't a major factor. Several decades ago the by EU required
energy label introduced a way for consumers to get choose more efficient products but it resulted in lots of patching rather than real changes. As you probably know, fries are pretty big here, literally compared to McD, but also in popularity. With the current energy rates many what we call 'snackbars' can't survive, just as bread bakers. They are stuck in their ways, wasting energy, and frankly I like to see businesses who cannot adopt die out. These circumstances lead to innovative solutions, just a few days ago a snackbar reopened, selling fries cooked in a new infrared fryer.
As for using NG for power generation, yes, for now, specifically for dark hours and other times where wind and solar can't provide a steady enough supply. That will end too. Besides meeting emission goals, if anything because the world's running out of ng almost as fast as oil. It differs per continent but for example, in 2019 US had enough NG for the following 84 years, world average roughly 42. 'Thanks' to Putin, all the projections are off the table. In ways it's worse, in ways it's better.
Just the American ones poisoning and fattening up our kids. If MacDonalds, KFC, Burger King and similar disgusting food suppliers with burgers from 80 different cows go out of business in the process it would be a huge win.