You need the fastest hashlib and Base58 implementation in the world,
Warp-levelI’ve worked on this and developed a solution

holy moly

Wait, we don't need a public key here? BTC address?

No. In my case, I only verify whether the WIF (Wallet Import Format) is correct. The output displays only checksum-validated WIFs. The second script computes the corresponding public key and address.