OK, so yo believe Cornelius was regenerated by the Holy Spirit before he believed and received the Spirit. How does that work?, please explain in detail.
How about the Samaritans who heard the woman at the well and believed on Jesus because of her words? How did that work?
Jn 4:39 And many of the Samaritans of the city believed on him for the saying of the woman, which testified, He told me all that I ever did.
This verse explains how and why these Samaritans believed on Jesus, because of the testimony of the woman.
How do you explain this when we know this woman herself did not receive the Spirit until after Jesus was raised from the dead and glorified?
There were those who believed in the Old Testament gospel that anticipated the coming Christ (Acts 10:43) but who did not know that this coming Christ had come in the Person of Jesus of Nazereth.
36 The word which God sent unto the children of Israel, preaching peace by Jesus Christ: (he is Lord of all

37 That word, I say,
ye know, which was published throughout all Judaea, and began from Galilee, after the baptism which John preached;
38 How God anointed
Jesus of Nazareth with the Holy Ghost and with power: who went about doing good, and healing all that were oppressed of the devil; for God was with him.
39 And we are witnesses of all things which he did both in the land of the Jews, and in Jerusalem; whom they slew and hanged on a tree:
40 Him God raised up the third day, and shewed him openly;
41 Not to all the people, but unto witnesses chosen before of God, even to us, who did eat and drink with him after he rose from the dead.
42 And he commanded us to preach unto the people, and to testify that it is he which was ordained of God to be the Judge of quick and dead.
43
To him give all the prophets witness, that through his name whosoever believeth in him shall receive remission of sins.
44 ¶ While Peter yet spake these words, the Holy Ghost fell on all them which heard the word.
There was no satelite television, radio or public media to spread the word and the congregation at Jerusalem was not too concerned about reaching out to Gentiles or going to "all nations" as commissioned.
They had heard about these things probably second hand and negatively from the Jews but God sent Peter to inform them of these things first hand.
In short, they already were regenerated believers in the Old Testament gospel (Acts 10:43) which anticipated the coming Messiah by faith but ignorant that Jesus of Nazereth was that Messiah due to distortion by Jewish enemies.
Finally, the coming of the Holy Spirit upon them is explained by Peter in Acts 11 as what happened on the Day of Pentecost where there was an audible manifestation (Tongues) and filling! Peter and the six Jews he brought with them witnessed another Pentecost upon these Gentile believers in the Old Testament gospel who embraced Jesus of Nazereth as the fulfillment of that gospel and thus God confirmed these Gentiles by the repetition of Pentecost and sign gift of tongues.
Now, you have your own agenda that you need to use this text for and so you care little or nothing about the truth of it. So go ahead and continue to do what you do best - pervert the scriptures to support your heresies.