Arabian Nights or something?
Sufism, I think.
https://www.nationalgeographic.com/animals/article/snake-handlers-appalachia-changing-practices Some sects of Christianity also, but I don’t know how charming they are or what baskets are used.
I don’t think it’s specific to a religion, but the culture you’re thinking of is probably Indian.
From Wikipedia:
The practice was historically the profession of some tribesmen in India well into the 20th century but snake charming declined rapidly after the government banned the practice in 1972.[1][2] Snake-charmer performances still happen in other Asian nations such as Pakistan,[3] Bangladesh, Sri Lanka, Thailand and Malaysia. The tradition is also practiced in North African countries of Egypt, Morocco, and Tunisia.
So it could be this very wide range of cultures, but you’re probably thinking of India.