Me too, I think Vegapunk will save Kuma somehow, maybe he has a digital key that unlucks his true self or something like that.
But at the same time I think Kuma is supposed to be a bittersweet character at his core, meaning that he will probably never be the same again... But enough to get in touch with his human side and his memories, so that him and Bonney can have a "happy" ending.