Hey,
I’m not an expert, but maybe look into Alpha shapes / Concave hull / Convex hull?
Hope that helps,
Mark