I had the hardest time getting this done on my 2022 Ram 1500, spent many hours.
However, finally figured it out!!!
My issue was I was not using the original genie remote to program. Using a third-party remote, could not get it to work for the life of me. Finally followed the directions in the Quickstart guide from 1-4 using the original Genie remote (have rolling code). Worked like a charm.
Hope this helps some poor soul. Nowhere did I find this written, but glad I got it figured out.
Also P.S. - You always risk of allowing a thief to open your garage if you park outside. Even if you lock your car which deactivates the Homelink system. If your window is broken and the door is opened, the Home link system becomes active again. And just like that a thief can open your garage door.