Mm.
We need the government to do several things:
Regulate dog training - many of the attacks I've seen footage of or read about involve dogs grabbing at sleeves, because there are morons out there (sadly, all over TikTok) teaching other morons how to turn their dog into a 'protection dog' - by getting them to bite people wearing bite sleeves, and then 'agitating' them - beating them with sticks, pipes etc to wind them up and get them to hold on/bite harder.
Currently anyone can call themselves a dog trainer or behaviourist with no requirement to undergo any assessment or externally verified qualification. It is also still legal in most of the UK to use shock collars and prong collars and other methods that we know increase the chances of aggressive and violent behaviour toward people.
Ban the import of dogs with cropped ears - this sounds like its just an aesthetic issue but ear cropping has become very popular, and whilst it is illegal here, it is perfectly legal to import a dog with cropped ears, or simply say you did. And there are companies who will sell you a cropped dog that they imported (or did they?) with the correct paperwork... and that dog can be sold to you after it's been trained to attack people. If you have the money.
Its the sought after thing amongst certain celebs and so Joe Public wants the image, hasn't the cash, so buys a big beefy breed/scary breed dog and goes to a back street 'trainer' for 'protection dog training'... or goes it alone with TikTok for advice.
Banning importing dogs with cropped ears would seriously damage such dog importation businesses. Add in new controls/legislation over who can/cannot have a protection trained 'guard dog' would also help enormously. If they were subject to the same sort of checks and requirements that Dangerous Wild Animals are (where your ability to house and meet that animals needs and keep the public safe from it are evaluated annually, and you're only licenced if you pass those checks) that would help.
Early education - get rid of the idea that a puppy is a blank slate (it isn't!), that where that puppy comes from and how their parents were raised/lived is also important - that training methods matter, not just results, a dog beaten and subjected to pain is far more likely to be aggressive than one trained using force free/fear free methods.
I don't know how you do that, work stuff into the curriculum within other subjects, you can find bits relevant to biology, psychology, PSE (does that still exist?), maths (how much does Joe Bloggs earn if his puppies cost x and raising them cost y and Susan Smith suing him because her puppy came home with parvo cost z..).
Making the compulsory microchip system work would be a start - a central database, and chips that cannot be altered/over written, that link to a dogs entire history from breeder to owner to owner. Make it the legal responsibility for both buyer AND seller to submit updated details to the database. That way if you're caught in possession of a dog not chipped to you, you get a fine AND the person who sold the dog on without updating the details ALSO gets a fine.
Make it possible that the seller of a dog potentially carries some responsibility for that dog for life - so if you sold a dog on and that dog bites someone, you might be partially liable. Which means you're far less likely to sell/give a dog to an idiot in the first place.
Police could be issued with a chip scanner, they take up little room in a car and anyone can operate one - making a 'stop and check' situation easy for all officers to do unlike a 'stop and assess if the dog is an illegal breed' which is impossible as it requires specially trained 'Dog Legislation Officers'.
The real root of the problem lies in human psychology though - you rarely ever find these cases involving well educated, financially stable, mentally/emotionally secure, confident people. They own big scary dogs because they fear the world and feel horribly insecure in it on some level.
Banning breeds doesn't work, because it doesn't address any of the myriad underlying issues, and we'll never have the police power to truly police it. Even if the police had the physical numbers to go around seizing dogs in the street, those dogs have to go somewhere, our legal system means they cannot be snatched and destroyed there and then, they have to be held, evaluated/assessed, owner taken to court to fight for the right for the dog to be released/defend themselves against the charge of owning an illegal breed. That costs (the taxpayer) enormous sums and takes months and months.
Btw - government are aware of all these things, they've been suggested in various formats/tweaks and some of them heavily pushed for, for YEARS now, decades in some cases, by the advisory group APDAWG.
It is cheaper to ban breeds, it makes the public feel like something is being done for pretty much zero effort.