Even the one whom God used to give the Law, Moses had a “foreign wife” and God defended Moses against the accusations of Miriam (prophetess) & Aaron (high priest):
“And Miriam and Aaron spake against Moses because of the Ethiopian woman whom he had married: for he had married an Ethiopian woman.” (Numbers 12:1)
God only disallowed foreign wife marriages for the Jews in instances where their wives would lead their “hearts away from serving the True God” into serving created principalities.
“For when Solomon was old, his wives turned his heart away after other gods; and his heart was not wholly devoted to the LORD his God, as the heart of David his father had been.” (1 Kings 11:4)
Under the New Testament, anyone can believe in Him and hence, the Bible allows “interracial marriages between believers as best” (for example, Timothy had one parent a Greek & the other a Jew).
“Paul came also to Derbe and to Lystra. And a disciple was there, named Timothy, the son of a Jewish woman who was a believer, but his father was a Greek,” (Acts 16:1)
There is “no” partiality with the Living God:
“For there is no partiality with God.” (Romans 2:11)