Manchester City manager Pep Guardiola has said he has no regrets after signing a two-year contract extension despite the club's on-pitch struggles.