Don’t do anything to the woman. She hasn’t committed a sin worthy of death. That case is like the case of someone who attacks and murders a neighbor.
Suppose someone is put to death for a crime worthy of death. And a pole is stuck through their body and set up where people can see it.
But suppose a man happens to see a young woman out in the country. And she has promised to marry another man. But the man who happens to see her rapes her. Then only the man who has done that will die.
The man found the young woman out in the country. And she screamed for help. But there wasn’t anyone around who could save her.