One wire keypad error with ESP32 WROOM

With two processors you could be facing power problems (must power-up both at the same time), communication problems and level shifting problems. And two sets of code. A port expander is usually much easier to implement.

You haven't told us why you need to use the one-wire way.
Most ESP32 boards have enough pins to connect a 4x4 keyboard directly.
Leo..

Edit: Found it in your cross-post (same project).