How can i communicate between a teensy 4.0 and an esp32?

Use UART serial instead of I2C to communicate between MCUs.

I2C was designed for short range communications between chips on a single PCB.