"Both men and women are created in the image of God (Genesis 1:27), so it shouldn’t surprise us that sometimes God uses feminine imagery to describe the ways He cares for us.
Sometimes He is said to be like a mother in the way He cares for us, though even those types of comparisons are rare.
--However, when gendered language is used to describe who God is and how He acts in relation to us, He is always unambiguously relationally male. It is somewhat ironic in today’s climate that some refuse to accept God’s self-identified ‘preferred’ pronouns in Scripture!
Using a feminine comparison doesn’t make the subject of that comparison female. Paul compares his gentleness with the Thessalonians to that of a nursing mother with her children (1 Thessalonians 2:7); Paul was not calling himself a woman!
When Moses wanted to complain to God about the burden of the Israelites, he asked, “Did I conceive all these people? Did I give them birth, that you should say to me, ‘Carry them in your bosom, as a nurse carries a nursing child,’ to the land that you swore to give their fathers?” (Numbers 11:12). Moses obviously was not female, yet used a comparison to make his point." CMI