Dealing with a broken toilet flange on PVC pipe
Assuming the pipe below the concrete is OK, you can buy a replacement flange that is designed to sit inside the pipe and grip the pipe in such as way as to secure the toilet



If the pipe below the concrete is damaged, you'll need to excavate the concrete and replace the entire damaged section. The good news there is you can install a new flange directly connected to the pipe then.