I've heard it so many times:
"At 0 K Fermi energy and Fermi level are the same."
"The Fermi level for an intrinsic semiconductor lies at the middle of the band gap."
And the definition of the Fermi energy is
The highest level of energy up to which electrons are filled.
Now my confusion is if Fermi energy is an energy state filled by electron how can it (Fermi energy=Fermi level at 0K) lie in the band gap (gap means there is no energy state that can be occupied by electron)?