The problem you described is a common problem in the current e-commerce environment, which is also the reason why many people want to register an edge ball trademark at any cost, because the edge ball trademark contains keywords, which can help businesses rank more advantageous in product miscellaneous search.
So, to put it another way, at present, all major e-commerce platforms, such as Taobao Tmall JD.COM Paipai, have such regulations, that is, infringement of other people's trademarks in the title is not allowed. As you mentioned in the question, the situation is actually an infringement.
finally, how to solve this problem?
The situation of the competitor's trademark you just described is actually technically speaking, they are registered as a trademark with the common name of the industry, which is not allowed by the Trademark Law. However, the law has to go through procedures. If we don't file a trademark dispute with the Trademark Office and demand that their trademark be revoked, then we will still be infringing when we write it like that on the title.