Bad sections can be cut out and replaced.
I do a whole run not just a short piece.
It looks like cheap pine flooring, not hardwood.
Any real flooring guy could do these repairs in about an hour.
Once done the whole floor most likely would need to be sanded and refinished to get it all to match.