Formylation of trifluoromethanesulfonamide derivatives