The given value is not suitable for var.prefix_list declared at variable.tf:11,1-23: element "TO_WAN_1": attribute "rule":

I am trying to create a prefix-list using for_each however this resource has a rule attribute that is a block. I am trying to create a prefix-list and the name will make it unique. I want to be able to pass this down to a child module for right now, in the root module just trying to get this to work. End goal for me is to have child module be able to create a prefix list just by passing in values. I am new so any help is greatly appreciated! I can only post one snippet

variables.tf