Is it a bad idea to use expired ketoconazole cream?

Not dangerous. It won't hurt you; the only question is whether it will help. No harm in trying if you're trying to save money.