I commend you for your imagination. Can I ask how you crafted the object to match the dimensions? I’m brand new to 3D printing and currently climbing the learning curve of printing itself but will want to start learning about doing my own modeling soon.
The only criticism I’d make is that patching drywall is dead simple and cheap and so your solution seems possibly a bit overengineered (and, while I’m at it, that Andreesen’s observation is both facile and meaningless and is probably a reflection more of the bids Marc Andreesen’s house manager gets than anything insightful about labor costs in America).
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.
The hole was of simple enough shape that I could just design it manually. I used SCAD, which is kind of a programming language supported by some tools that can convert it to STL.