This is an awful comparison, because when going to the pub or a restaurant in the real world, assaulting other patrons is frowned upon and against the rules. It is safe to assume complaining to management, or possibly the source of your problem will solve your issue.
In Elite Dangerous, a video game, not only does the management—in this case the developer— completely allow hostile actions toward other players, it fully expects them to happen as evidenced by game design.
If they did not expect these things, then there wouldn’t be bounties triggered when shooting a player. There wouldn’t be a toggle for crime reporting. There wouldn’t be a way to damage players etc.
Unlike at a real-world gathering or establishment, players are not required to adhere to any rules, traditions, or social norms within the game world— excluding any voice or text-based interactions that could be considered TOS violations by Fdev.
Elite is not a PvP focused game, but it is PvP-enabled at all times while in open play. It is to be expected, as with any other PvP-enabled sandbox game, that people may attack you for any reason, at any time.
It is literally by design, and makes complaining with inaction no less foolish, especially after 8 years.