Is masking tape left inside electrical boxes a safety concern?
Electrical tape would be fine. You can get it in many colors, too.

Masking/painter's tape does add some risk, as it's not got the same rated performance in overheating/fire conditions and might ignite or serve as a fuel source. It's a small concern, but it's a concern, and very probably a code violation.