Jesus never condemned religion. He condemned bad religion – whether it was bad Judaism, Christianity, or Paganism.
James 1:27 says “Religion that is pure and undefiled before God, the Father, is this: to visit orphans and widows in their affliction, and to keep oneself unstained from the world.”
Religion is a word that describes a system of beliefs and actions for how one relates to God. Our habits with Jesus and our actions towards Him are how we relate to God. It’s still a religion, and it is not evil.
Sure, it sounds cool to say “I hate religion. I have a relationship.” But that relationship is still a religion.
If we join in with the atheists of the world who are espousing that all religion is evil – we are not doing ourselves any favors. Good religion is good. Evil religion is evil. The Bible describes good religion, and the Bible condemns bad religion.
To say the Bible is against religion in favor of relationship, one must fail to see that their relationship with Jesus is how they are relating to God – which is a religion.