Maybe I’m missing something, but why have a single piece PCB instead of individual parts with a 3D printed slot for the sensor and LED.
A few wires later and a model scale up and your chess board can be a different size.
I suppose one piece is easier and cleaner, just less flexible.
Ordering and wiring up 64 small individual PCBs, vs one PCB, is not a hard choice.