11 Yet, before the twins were born or had done anything good or bad — in order that God's purpose in election might stand:
Paul doesn't say God told me this, he writes it the way he understands it to be.
When you quote make sure you have sufficient context attached. Otherwise people miss the argument that
Paul is addressing.
Here is the next line of the quotation.
Romans 9
11 for though the twins were not yet born and had not done anything good or bad, so that God’s purpose according to His choice would stand,
not because of works but because of Him who calls, 12 it was said to her, “The older will serve the younger.”
Not because of works but because of faith (Him who calls).
Paul is not talking about sovereign election in Romans 9. Paul is talking about why Israel failed and why the
Gentiles were elect.
You need to read further in Romans nine to understand this subject, that Paul is declaring to the Romans.
30 What shall we say then?
That Gentiles, who did not pursue righteousness, attained righteousness, but the righteousness that is by faith; 31 however,
Israel, pursuing a law of righteousness, did not arrive at that law.
When you start discussing say the topic of individual election, then you have wandered from the text.
Jews and Gentiles!