Your method of installing mods is correct… except it breaks vs. You’ve actually done it the harder, old school, way. These days we have apps to install/setup modded profiles for us. Options include the Curseforge app (very user friendly), the modrinth app (also very user friendly), or more advanced launchers like prism (very customisable but not super intuitive)