Cut out the ptex around it in a trapezoid shape, pry it up. Cut an edge to size, wood screw it into place. Then use 24 hour jb weld and leave a tiny bit of room to put ptex over it so it’ll be flush. Then detune your edge and you’ll be good as new.
Theres a thread or guide on this somewhere on Newschoolers.