Regularity of the Kähler–Ricci flow