Does the Plywood Around the Toilet Flange Need to be Replaced?
If the plywood is solid and not delaminated “can’t poke into the surface” you may be ok.  It would be better to check the underside also.
There is a sealer that even hardens damaged wood so it will pass home inspections and will protect undamaged wood.