Is it bad for the bike to pedal backwards?
There are a couple of things you should consider:

Your bike isn't going to care. You aren't going to loosen pedals or cranks spinning in reverse, because you're not applying any load, so there is no force in which to cause precession or fretting.

You are getting no benefit (health-wise) from doing so. It might be better not to even bother.