Install the Recovery Modules application in the same environment where the module that you want to recover was created.
Add the name of your module, or part of it, in the input and click on the search button. In the case that exists at least one version of it, the table of versions will be refreshed with the last five most recent versions found.
Select one to download and open it in the same environment that you created your module. Published it and your module is now recovered.