Read it more carefully. Those that hold the testimony of Jesus are not symbolically represented by the woman, but by her offspring (what offspring did Mary have?). The offspring of the Israelites/Jews are Christians.
(Rev 12:13) When the dragon saw that he was thrown down to the earth, he persecuted the woman who gave birth to the male child.
Satan persecutes the Jews (represented by the woman).
(Rev 12:17) The dragon grew angry with the woman, and went away to make war with the rest of her offspring, who keep God’s commandments and hold Jesus’ testimony.
Satan persecutes Christians (represented by the offspring of the woman).
Mary is our spiritual mother
Mary is the Mother of the living in Christ and the new creation!
Genesis 3:20
And Adam called his wife's name Eve; because she was the mother of all living.
John 19:26-27
When Jesus therefore saw his mother, and the disciple standing by, whom he loved, he saith unto his mother, Woman, behold thy son! Then saith has he to the disciple, Behold thy mother! And from that hour that disciple took her unto his own home.
Jesus is not just asking John to care for His mother, if so He would have said so.
Jesus is in the very least making Mary John’s spiritual mother! And if the apostle John needs a spiritual mother so do we!
What is the family of God without a mother? The mother is the heart of the family! Jesus said I will not leave you orphans! Jn 14:18 He proved Mary the mother of one disciple then He does so for all disciples!
As eve was the mother of all the living in the first creation, gen 3:20 so Mary is the mother of all those who live in Christ and the new creation!
Rev 12:17 our spiritual mother!
Rachel is spiritual mother of Israel!
A type of Mary as spiritual mother of Christians!
The 12 sons of Jacob have 4 biological mothers, but Rachel is the spiritual mother of all Israel!
Matt 2:18 In Rama was there a voice heard, lamentation, and weeping, and great mourning, Rachel weeping for her children, and would not be comforted, because they are no more.