Installing Forge
Download the Forge Installer
Go to the official Forge website and download the installer.
Have Minecraft 1.21.11
Open the official launcher and run version 1.21.11 at least once before installing.
Run the installer
Open the downloaded file, select 'Install client' and click OK.
Select the Forge profile
In the launcher, choose the Forge profile before playing.