There's also the Court of Justice which is the highest court, but only in EU matters. National courts can refer cases to it, or the commission/member states can bring cases against other member states, if they believe they are not following EU law. This would mean either they are not following a regulation, or that the state has not fully/correctly implemented a directive into their own national laws.
As I understand it, there's no specific regulation or directive aimed at gambling itself. There's things tangentially related (data protection, anti money laundering etc). But since there's no regulation or directive saying "gambling must be allowed", there's nothing stopping a member state banning it completely if they so wish.
The only point in which the EU might step in would be if the law was somehow discriminatory or inconsistent (e.g. we ban all foreign gambling sites, but not our own, we ban lottery tickets but not state run casinos, etc).
So it should be possible to regulate it.
However, national law must reasonably satisfy EU directives, otherwise CJEU could determine that a member state is infringing EU law and fine them until they amend their law.
If you have a gambling addiction, it's basically impossible to avoid the trigger since you have to buy food anyway. Truly an evil dark pattern.
There were many startups here in Sweden in the early '00s, and I believe they had taken advantage of a legal loophole which has since been plugged. Regulation has tightened. Players have to be 18 y/o, use digital ID and not be registered as a gambling addict. But I still find the industry to be depraved, to be honest.
They're not alone in this by any means, America has also opened their doors for all forms of gambling like Kalshi which now even sponsors news networks of all things.
The EU has this disconnect with the things they push, which makes sense considering their size and the speed at which it moves. One example that comes to mind is how they're both pushing for more privacy online while also pushing for things such as chat control which is antithetical to privacy.
Does social media need regulating? Yeah. Is infinite scrolling where they should be focusing? Probably not, there's more important aspects that should be tackled and are seemingly ignored.