You can just buy a camera module with a longer cable, the cameras are only like 5-10$.
Here’s my pair of ov3660’s hooked up to a pair of esp32 sense.
I picked up the replacement cameras on AliExpress.