Spatially programmable spin interactions in neutral atom arrays