Lua filter istio 1.4

I am trying to create a lua filter on istio 1.4.5 like this:

apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
  name: lua-filter
  namespace: foo
spec:
  workloadSelector:
    labels:
      app:  httpbin
  configPatches:
    # The first patch adds the lua filter to the listener/http connection manager
  - applyTo: HTTP_FILTER
    match:
      context: SIDECAR_INBOUND
      listener:
        filterChain:
          filter:
            name: "envoy.http_connection_manager"
            subFilter:
              name: "envoy.router"
    patch:
      operation: INSERT_BEFORE
      value: # lua filter specification
       name: envoy.lua
       typed_config:
         "@type": "type.googleapis.com/envoy.config.filter.http.lua.v2.Lua"
         inlineCode: |
           function envoy_on_request(request_handle)
             request_handle:headers():replace("lua-filter", "lua-filter")
           end

Error on 1.4:

On 1.5:
image

This lua filter works fine on 1.5, but I saw that this new configuration was introduced in 1.3, I haven’t seen anything in the change logs of why this shouldn’t work on 1.4. Anyone can help me with that?