I faced the below error in Python 3.9 envt although I was not importing package regex or using it anywhere: [error] modulenotfounderror: no module named 'regex._regex'
Installing regex==2019.11.1 in the envt of deployment resolved my issue