External Task Client fetch and lock warning about Invalid cookie header

I have a couple of instances of Camunda Platform 7 running in AWS ECS cointainers behind an ALB with sticky sessions enabled. When the external task client fetches my tasks I get the following warning:

Invalid cookie header: “Set-Cookie: AWSALB=xxxxxxxxxxxxxx; Expires=Thu, 16 May 2024 20:32:04 GMT; Path=/”. Invalid ‘expires’ attribute: Thu, 16 May 2024 20:32:04 GMT

I’ve found some possible workarounds on forums setting a cookie specification for the httpClient (cookies - Fixing HttpClient warning "Invalid expires attribute" using fluent API - Stack Overflow) but I haven’t been able to apply it to the external task client.

Any idea of how could I solve this?