modules installed from a module registry, such as the Public OpenTofu Registry or any TACOS (TF Automation and Collaboration Software) private modules registry. Other module sources can provide their own versioning mechanisms within the source string itself, or might not support versions at all. In particular, modules sourced from local file paths do not support version; since they're loaded from the same source repository, they always share the same version as their caller.
-
https://opentofu.org/docs/language/modules/syntax/