The question crops up periodically about the gender of God. We can see by Genesis 1:26 and 27 that God created man in his own image. He also created woman, presumably also in his image; (if not, why not?)
Genesis 1:26…And God said, Let us make man in our image, after our likeness: So God created man in his own image, in the image of God created he him; male and female created he them….(27) So God created man in his own image, in the image of God created he him; male and female created he them.
We are told repeatedly in scripture that God is in us, Jesus is in us, Spirit is in us. In John 14:20 we read: In that day you will know that I am in My Father, and you in Me, and I in you.
It is written that Jesus was born of Mary, a female and of the Spirit, supposedly male and therefore would encompass both.
We know we are born of a man and a woman, our mother and father, and therefore have both female and male in our makeup.
If we have both female and male in us and are born in God’s image, does that answer the question of God’s gender??