Jumping in here quite late… sorry if this was addressed.
Atheists are more than someone being unsure, or struggling with the concept of God. They deny He exists.
Jesus does explain that it’s not just those who say “Yes, Lord” or have the appearance of religious devotion, but those who do His father’s will, that will be received into His kingdom.
But this doesn’t exclude belief.
**Do not labor for the food which perishes, but for the food which endures to eternal life, which the Son of man will give to you; for on him has God the Father set his seal.” Then they said to him, “What must we do, to be doing the works of God?” Jesus answered them, “This is the work of God, that you believe in him whom he has sent.” **
And he said to them, “Go into all the world and preach the gospel to the whole creation. He who believes and is baptized will be saved; but he who does not believe will be condemned.
Unless the Gospel which someone heard is so vague or distorted, which most likely wouldn’t hold the conviction of God, whoever hears the message about Jesus would be condemning themselves to discard it. How can a soul be searching for God, and reject Jesus? It’s impossible.
No amount of good work can save anyone, if they reject the heart of God’s love, which is manifest in Christ.