You could set an AnimationPlayer with it's as a child of the root node and set the AnimationPlayers "Root Node" to the CollisionShape2D, and manipulate it that way.
Or you could extend the ShapeRectangle2D class and through some magic set it to use the sprite, but I don't think that's possible.