I've personally used the Lidar sensors on my iPhone with an app like Polycam to some degree of success. I was doing a scan of a massive oak tree in my backyard to plan out the treehouse tab location and associated treehouse for my kids but fell flat after the model was created (Sketchup is truly enshittified). I'd imagine a similar process for creating the "fill" for the void in the wall.