AFAIK, standalone Microsoft Publisher purchased from the Microsoft Store is typically licensed per device (one-time purchase), allowing installation on one PC. However, if accessed via a Microsoft 365 subscription, it is licensed per user, allowing sign-in on up to 5 devices.
For details, refer to https://www.microsoft.com/licensing/guidance/Microsoft-365-apps
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin