Thanks for your time reaching offline.
As discussed, you have confirmed that the issue is resolved and found that as you were deploying function using Terraform then in that case you should not set FUNCTIONS_EXTENSION_VERSION instead set azurerm_function_app.version
Updating the FUNCTIONS_EXTENSION_VERSION to "2.0.15229.0" helps you to resolve the issue.