Figured out that it works as long as this .h file is imported somewhere. As soon as you remove that import it stops helping code completion to choose framework or .h in its own import.
Curious to understand why it is behaving this? If someone knew, please let me know.