Simply restricting days/times fireworks can be used, and the ages of who they can be sold to, does not work.
It is nigh on impossible to police and enforce firework law when it comes to sales to the public and general use - adults buy them then give them to kids, people use them outside the days/times they are meant to and there is NO way anyone could actually catch someone doing that in any meaningful way.
The psychological effects of sudden, unpredictable, startling loud noises on those with phobias/fears are awful (regardless of species) and to address those takes YEARS, and due to the way the mammalian brain learns, that work can be undone in moments!
For the benefit of the humans who find them terrifying, and the pets and the livestock and the wildlife I do think sales needs to be controlled and limited to:
Professional displays.
Licenced persons who need to show proof of a suitable venue and insurance before they can get that licence.
Only certain dates which are announced annually.
Displays must be announced in a variety of on and offline publications with sufficient notice (14 days).
Vendors have to check licences and keep details of buyers.
This would stop people buying fireworks and using them inappropriately. It would cost too much to buy them and too much if caught.
You could stop check people suspected of carrying illegal fireworks or storing them.
People would still be able to enjoy fireworks but at specific places and times and this predictability would make it possible for those who wish to avoid them to actually do that.
There is no good reason why anyone needs to buy explosives over the counter in the supermarket.
We tightened up our laws on who could have and use explosives over the years for really good reasons, I don't see why fireworks should be any differently, they are still dangerous!