Leviton 3 way switch to Kasa 3 way switch?

The Leviton 3 way switch that I removed has white, black, and red wires that was connected to it. Ground wasn’t connected to it. Can’t reinstall it since it broke after releasing the wires. Curious if it’s possible to install a Kasa 3 way switch. Noticed some videos it has 5 wires coming out of it.