I fear not. My termux is installed from f-droid.
Discussed in termux-api issue #257: https://github.com/termux/termux-api/issues/257
Unless you build it yourself with the functionality restored, you can't use it. Termux maintainers are just that dedicated to targeting Google Play first.