On the regularity of the Anosov splitting for twisted geodesic flows