Gas boilers are not illegal. Gas boilers will be banned from new homes from 2025 but there is no plan to make them illegal altogether.
You are quite right but the gas boiler in your house will be useless when there is no gas to fire it and the change to hydrogen hasn't happened because the welsh government won't do anything westminster does.