You’re right that the second death is the lake of fire, but it’s a second physical death, as people that experience it are first resurrected.
John 5:29 (NKJV) “and come forth--those who have done good, to the resurrection of life, and those who have done evil, to the resurrection of condemnation.