The distance is simply:
distance = vec_dist(blue_entity.x,red_entity.x);

But thats just a value, not a vector or whatever.
So using vec_lerp to set the position of the green entity is the right way to go.
Or lets say, the easiest way