since this name is your creation, it is actually a copyright issue. Copyright does not need to be registered and enjoyed from the beginning.
if you want to use this name on a commodity, you can apply for trademark registration, provided that you set up a company or individual industrial and commercial households with business scope. In this way, when others use the name in the same or similar products, he infringes.
before your trademark becomes a well-known trademark, it is impossible for you to apply for the protection of the name to cover other unrelated goods.
In short, if it is for the sake of copyright, if someone else uses your name first, it will never change the fact that you think first, and he can't say that you are "pirated".
the protection of trademark registration can only guarantee the exclusive right to use a commodity trademark in a certain field.