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..