I'm trying to match points to polygons in BigQuery and want to match on 1) point is within polygon and 2) point is at least 2 meters within the border of the polygon. The goal is to exclude points (which have some error in them) that are very close to the edge of the polygon.
Doing the reverse and matching points that are nearby to a polygon—even if not within—would be easy with ST_DWITHIN(point, polygon, 2). I basically want to implement ST_DWITHIN(point, polygon, -2)
Any tips on how I might accomplish this?

