(טו) שׂ֣וֹם תָּשִׂ֤ים עָלֶ֙יךָ֙ מֶ֔לֶךְ אֲשֶׁ֥ר יִבְחַ֛ר ה' אֱלֹקֶ֖יךָ בּ֑וֹ מִקֶּ֣רֶב אַחֶ֗יךָ תָּשִׂ֤ים עָלֶ֙יךָ֙ מֶ֔לֶךְ לֹ֣א תוּכַ֗ל לָתֵ֤ת עָלֶ֙יךָ֙ אִ֣ישׁ נׇכְרִ֔י אֲשֶׁ֥ר לֹֽא־אָחִ֖יךָ הֽוּא׃...(יח) וְהָיָ֣ה כְשִׁבְתּ֔וֹ עַ֖ל כִּסֵּ֣א מַמְלַכְתּ֑וֹ וְכָ֨תַב ל֜וֹ אֶת־מִשְׁנֵ֨ה הַתּוֹרָ֤ה הַזֹּאת֙ עַל־סֵ֔פֶר מִלִּפְנֵ֖י הַכֹּהֲנִ֥ים הַלְוִיִּֽם׃ (יט) וְהָיְתָ֣ה עִמּ֔וֹ וְקָ֥רָא ב֖וֹ כׇּל־יְמֵ֣י חַיָּ֑יו לְמַ֣עַן יִלְמַ֗ד לְיִרְאָה֙ אֶת־ה' אֱלֹקָ֔יו לִ֠שְׁמֹ֠ר אֶֽת־כׇּל־דִּבְרֵ֞י הַתּוֹרָ֥ה הַזֹּ֛את וְאֶת־הַחֻקִּ֥ים הָאֵ֖לֶּה לַעֲשֹׂתָֽם׃...
(15) you shall be free to set a king over yourself, one chosen by your God ה'. Be sure to set as king over yourself one of your own people; you must not set a foreigner over you, one who is not your kin. ...(18) When he is seated on his royal throne, he shall have a copy of this Teaching written for him on a scroll by the levitical priests. (19) Let it remain with him and let him read in it all his life, so that he may learn to revere his God ה', to observe faithfully every word of this Teaching as well as these laws....
(ה) אֵין מַעֲמִידִין אִשָּׁה בְּמַלְכוּת שֶׁנֶּאֱמַר (דברים יז טו) "עָלֶיךָ מֶלֶךְ" וְלֹא מַלְכָּה. וְכֵן כָּל מְשִׂימוֹת שֶׁבְּיִשְׂרָאֵל אֵין מְמַנִּים בָּהֶם אֶלָּא אִישׁ:
(5) A woman may not be appointed queen, as it says, “upon yourselves a king” (Deut. 17:15) - a “king” and not a “queen”. A woman may not be appointed to any Position in Israel. Only may a man.
Rabbi J. David Bleich
The major halakhic consideration militating against women's eligibility to serve in positions of communal office is Rambam's ruling, Hilkhot Melakhim 1:5: "A woman may not be established as monarch as it is said '[You shall set] over you a king,' but not a queen. Similarly, with regard to all appointments in Israel, only a man may be appointed to them." Commentaries on Rambam give as the source for this ruling the comments of Sifre, Deuteronomy 17:15. Statements similar to that of Rambam are found in the writings of Ramban, Ran, Rashba, Ritva and Rosh, particularly in their commentaries to Shevu'ot 30a, as well as in those of numerous other early authorities, although it is not certain that all of these authorities endorse Rambam's view that offices other than the monarchy are included in this ban.
גַּם וַשְׁתִּי הַמַּלְכָּה עָשְׂתָה מִשְׁתֵּה נָשִׁים (אסתר א, ט), רַבִּי יְהוּדָה בְּרַבִּי סִימוֹן פָּתַח (ישעיה ג, יב): עַמִּי נֹגְשָׂיו מְעוֹלֵל וְנָשִׁים מָשְׁלוּ בוֹ,... דָּבָר אַחֵר, וְנָשִׁים מָשְׁלוּ בוֹ, אַרְבַּע נָשִׁים נָטְלוּ מֶמְשָׁלָה בָּעוֹלָם, וְאֵלּוּ הֵן, אִיזֶבֶל וַעֲתַלְיָה מִיִּשְׂרָאֵל, וּשְׁמִירָמִית וּוַשְׁתִּי מֵאֻמּוֹת הָעוֹלָם.
“Also, Vashti the queen made a women’s banquet in the royal palace of King Aḥashverosh” (Esther 1:9).
Rabbi Yehuda son of Rabbi Simon began: “My people, its oppressors are babes and women govern them” (Isaiah 3:12)... “And women govern them” – four women assumed dominion in the world: Jezebel and Atalya from Israel, and Shemiramit and Vashti from the nations of the world.
Biblical “Idolatrous” Queens
The Bible depicts two powerful queens: Jezebel, the queen of Israel (1 Kings 16-21), and her daughter, Athaliah queen of Judah (2 Kings 11). These two queens as well as a queen-mother Ma’achah, mother of king Asa of Judah (1 Kings 15:13), are presented in the biblical texts as objectionable, mainly for their cultic role as supporters of worship...[of idolatry].
Source: https://www.thetorah.com/article/why-are-there-no-israelite-priestesses
https://www.britannica.com/topic/Sammu-ramat
This Hasmonean’s queen's reign over Judea was considered successful and fruitful. As the midrash explains it,
It happened in the days of Shimon b. Shetach and in the days of Queen Shlomzion that the rains descended from the nights of Sabbath to the nights of Sabbath until the wheat became like kidneys, and the barley like olive-stones, and the lentils like golden dinars. (Sifra Bechukotai 1:1)


שֶׁבַע נְבִיאוֹת מַאן נִינְהוּ? שָׂרָה, מִרְיָם, דְּבוֹרָה, חַנָּה, אֲבִיגַיִל, חוּלְדָּה וְאֶסְתֵּר.
Who were the seven prophetesses?
Sarah, Miriam, Deborah, Hannah, Abigail, Huldah, and Esther.
אֶסְתֵּר — דִּכְתִיב: ״וַיְהִי בַּיּוֹם הַשְּׁלִישִׁי וַתִּלְבַּשׁ אֶסְתֵּר מַלְכוּת״, בִּגְדֵי מַלְכוּת מִיבְּעֵי לֵיהּ! אֶלָּא שֶׁלְּבָשַׁתָּה רוּחַ הַקֹּדֶשׁ, כְּתִיב הָכָא: ״וַתִּלְבַּשׁ״, וּכְתִיב הָתָם: ״וְרוּחַ לָבְשָׁה אֶת עֲמָשַׂי וְגוֹ׳״.
Esther [was also a prophetess] as it is written: “And it came to pass on the third day that Esther clothed herself in royalty” (Esther 5:1). It should have said: royal garments. Rather, that she clothed herself with a holy spirit. It is written here: “And she clothed herself,” and it is written elsewhere: “And the spirit clothed Amasai” (I Chronicles 12:19).
בַּיּוֹם הַשְּׁלִישִׁי וַיִּשָֹּׂא אַבְרָהָם אֶת עֵינָיו (בראשית כב, ד),... בַּיּוֹם הַשְּׁלִישִׁי שֶׁל אֶסְתֵּר, (אסתר ה, א): וַיְהִי בַּיּוֹם הַשְּׁלִישִׁי וַתִּלְבַּשׁ אֶסְתֵּר מַלְכוּת, לָבְשָׁה מַלְכוּת בֵּית אָבִיהָ. בְּאֵיזֶה זְכוּת, רַבָּנָן וְרַבִּי לֵוִי, רַבָּנָן אָמְרֵי בִּזְכוּת יוֹם הַשְּׁלִישִׁי שֶׁל מַתַּן תּוֹרָה, שֶׁנֶּאֱמַר: וַיְהִי בַיּוֹם הַשְּׁלִישִׁי בִּהְיֹת הַבֹּקֶר. וְרַבִּי לֵוִי אָמַר בִּזְכוּת שֶׁל יוֹם שְׁלִישִׁי שֶׁל אַבְרָהָם אָבִינוּ, שֶׁנֶּאֱמַר: בַּיּוֹם הַשְּׁלִישִׁי. וַיַּרְא אֶת הַמָּקוֹם מֵרָחֹק,...
“On the third day, Abraham lifted up his eyes…” (Genesis 22:4) ... On Esther’s third day “Now it came to pass on the third day, that Esther clothed herself regally…” (Esther 5:1) The royalty of her father’s house. In what merit? This is an argument of the Rabbis and Rabbi Levi. The Rabbis say: in the merit of the third day of the giving of the Torah, as it says “It came to pass on the third day when it was morning…” (Exodus 19:16) Rabbi Levi said: in the merit of the third day of our father Avraham, as it says "On the third day, Abraham lifted up his eyes and saw the place from afar.” (Genesis 22:4)...
