Basically port (more specifically, update this Fabric port by su226, if is more easy to work with: https://github.com/su226/CreeperConfetti) this mod that disables creepers block damage when exploding (while keeping player/mob damage intact), replacing the block grief with fireworks.
If someone is interested, please add a toggleable option to incorporate Lenient Creepers functionality, that is also prevent damage for technical (non-mob/player) entities, like dropped items and armor stands/paintings, etc.
I know *VanillaTweaks *also have a similar datapack for disabling block damage, but in my experiences all of them disables mob/player damage as well (just jury-rig a mobGriefing switch at the moment the creeper will explode, that's just... annoying).
CF: https://legacy.curseforge.com/minecraft/mc-mods/creeper-confetti
MR: https://modrinth.com/mod/creeper-confetti
Lenient Creepers: https://modrinth.com/mod/lenient-creepers