Linear syzygies, flag complexes and regularity