Unlocking Lex Luthor in Lego Batman 2 comes down to a specific showdown.
You'll need to defeat him at the yacht club. Once you've taken him down in that encounter, Lex Luthor becomes available as a playable character, ready to join your roster for the rest of your adventures.