Recruiter called to reject me, but then said they would reach out in a couple weeks as they expect to have another position??

Has this happened and or worked for anyone? I interviewed for my dream job and my dream company and clicked very well with the hiring manager, feedback was great but they went with a candidate who had more specific experience (internal promotion), but that the junior level for this role would be opening up in a couple weeks. They said id be a great fit for the company and would follow up with me once it opens, but for the time being it’s confidential. HAS THIS WORKED FOR ANYONE? Ive literally never had a recruiter be that direct and transparent after an interview, usually just strung along or ghosted. I don’t want to get my hopes up.