Is it safe and legal to make this gas plumbing connection?
Your flex tube looks like it has a flare fitting with light colored pipe dope. Flare fittings are metal to metal seal and dope interferes with the seal. Even if it does not leak now it can leak in the future. I investigated a house fire -death caused by this situation. Only a problem if you have a flare connection with pipe dope.