Are input variables to Terraform included in the state file or stored otherwise?

I'm using a Terraform file to pass in an SSH key using a Terraform variable when I run terraform apply. The key is not included in the main.tf file.

I run the Terraform file and the prompt will ask for my file then the file is put on my Google Cloud Compute instance.

From a security standpoint, it would be a risk to store this SSH key in the autogenerated files such as the d.terraform.lock.hcl.

Will input variables supplied at runtime be stored in these files?

Edit: I know that I can just search for the input in the .tfstate file but I want to make sure the hashes in the lock file aren't somehow reverse engineerable.