Electrical tape is a pain. It will work, but it'll age and either get nasty-sticky or the adhesive will degrade eventually, still leaving a layer if nasty stuff on the MCU. It's a crap shoot, depending on how it it was made.
Kapton tape (maybe?) or a 3D printed cover would be better.
If you want something permanent, some potting epoxy would work wonders. It'll be messy and more expensive, but it won't budge. Ever.
The last option I could think of that would be between tape and epoxy would be some common silicone sealant. You can get it clear, black and white colors easily. It'll be a hair messy, but you can peel it off later.
I have basically stopped using electrical tape for electronics work unless I really don't give a shit. At the end of the day, anything that would prevent a short between the pins on the MCU is a win.