For gentiles, the law seems much more strict, that killing an uborn fetus constitutes as a capital offense. This is found in bereishis 9:6-
ואמאי רודף הוא שאני התם דמשמיא קא רדפי לה נימא מסייעא ליה רודף שהיה רודף אחר חבירו להורגו אומר לו ראה שישראל הוא ובן ברית הוא והתורה אמרה (בראשית ט, ו) שופך דם האדם באדם דמו ישפך אמרה תורה הצל דמו של זה בדמו של זה ההיא
Rav Ḥisda raised an objection to Rav Huna from If one is permitted to save the pursued forewarning: If a pursuer was pursuing another person in order to kill him, a third party says to the pursuer: See that he whom you are pursuing to kill is a Jew, and a loyal member of the covenant, and the Torah stated: “Whoever sheds the blood of man, by man shall his blood be shed” (Genesis 9:6). The Torah stated: Save the blood of this person who is being pursued with the blood of that person who is pursuing him.
בֶּן נֹחַ שֶׁהָרַג נֶפֶשׁ אֲפִלּוּ עֵבָּר בִּמְעֵי אִמּוֹ נֶהֱרָג עָלָיו... מַה שֶּׁאֵין כֵּן בְּיִשְׂרָאֵל.
Rambam Hilchos Melachim 9:4
A gentile who slays any soul, even a fetus in its mother's womb, should be executed in retribution for its death...These laws do not apply with regard to Jews
ליכא מידעם דלישראל שרי בדבר
Tosfos in Maseches Sanhedrin 59a:15
There is nothing permissable for Jews that is forbidden for gentiles
מתני׳ האשה שיצאה ליהרג אין ממתינין לה עד שתלד האשה שישבה על המשבר ממתינין לה עד שתלד האשה שנהרגה נהנין בשערה בהמה שנהרגה אסורה בהנאה:
MISHNA: In the case of a pregnant woman who is taken by the court to be executed, the court does not wait to execute her until she gives birth. Rather, she is killed immediately.
אפילו בהצלת עובר פחות מבן ארבעים יום שאין לו חיות כלל מחללין עליו
Ramban in Toras Ha'Adam
Even to save a fetus less than forty days old [since conception], when it has no life at all, Shabbos is desecrated for its sake