Issue with SetNestedAttribute in Terraform version 1.4.x

Welcome to the forum - please reformat your message - All of the indentation has been removed from your code, making it very hard to read

and

Guide to asking for help in this forum - Your question would be much more approachable if you included actual terraform plan output showing the problem