Termux - Cannot run python file in tasker
You need to grant Tasker root access in order to let it run the script.

The script requires an interpreter, as specified in its shebang line. To run the script "directly", Tasker still needs to execute the interpreter, the python3 binary. Since it's located in Termux's data directories, other apps can't access it without root access.