As mentioned here: https://opentofu.org/docs/language/files/
OpenTofu has support for .tofu files as the language starts to introduce features not supported in .tf and vice-versa. The current framework only supports .tf as it inherits its canHandle function from the TerraformFramework