That is not what he said though. He said there would be demand for gas well into the 2040s, and since most (all?) these bans only concern new sales, it will take ~20 years after the bans to get rid of a majority of the ICEs.
The oil industry already knows they will be done in the 40s. Their EUR (well estimated already 50 years ago) shows that growth will be extremely difficult past the 30s. They won't fight a ban on new sales except for the few who cannot diversify in other domains.