I went through a series of interviews and company's HR/recruiter was very generous to provide feedback after each interview. Feedback was really positive and they were interested (I applied through a referral). After 3rd and final interview I got a call saying the feedback is really good, i am a great fit, they are interested, but there was someone who started interview process before me and the position is filled. They will talk to leadership team to create another position hopefully and get to me next week because they really liked me as a candidate. I am not sure how much to believe this. They mentioned my salary twice in this call and were confirming you are looking for x right? I said yes so i just suspect maybe the salary is too high or what can be the reason? any advice?
No particular reason not to take what they say at face value - asking about the salary sounds to me like they want to check how much budget they'd have to find for the potential new position.
I wouldn't be pinning any real hopes on it - just carry on with your normal job search process and if they get back to you great, if not then you've not lost anything.