The twisted cohomological equation over the geodesic flow