Easiest way to get around this is avoid Terraforms type checking for the variable:
variable subnets { type = any }