According to the FSM (8W-30-21) the harness wiring colors for the sensor connector are:
terminal 4 tan/white stripe which is PCM O2 sensor signal
terminal 3 black/light blue stripe which is O2 sensor ground PCM
terminal 2 brown/white stripe which is O2 sensor heater control from PCM
terminal 1 orange/dark green stripe which is O2 sensor downstream heater relay
There are numerous sources for a repair pigtail to splice into what remains of the harness.
Does your connector look like this ?
IF so.... you can use this link.
https://www.ebay.com/i/362845146558...UzIpu73uvKPUccYMJJri49Vpr4CxoCZvUQAvD_BwE']O2
View attachment 151575