Treasury Secretary Janet Yellen has expressed regret for repeating the ’transitory' inflation mantra in 2021.