Mesh vertices not moving when I move my Game object

I wrote a simple script to mark the vertices on my game object

public class DrawVertices : MonoBehaviour
{
    private void OnDrawGizmos()
    {
        var vertices = GetComponent<MeshFilter>().sharedMesh.vertices;
        foreach (var vertex in vertices)
        {
            Gizmos.color = Color.red;
            Gizmos.DrawSphere(vertex, (float)0.2);
        }
    }

}

But the Spheres that I draw don’t look like they line up with the mesh see pic below

Needed transform vertices into world space like so

 var vertices  = GetComponent<MeshFilter>().sharedMesh.vertices
            .Select(point => transform.TransformPoint(point));