First, it’s always a bad idea to share an AppleID between different users - as doing so creates issues with data privacy, unauthorised purchases and, potentially, you being locked out of your AppleID account or devices.
A fundamental basic rule is one user = one AppleID.
If your AppleID is being used on someone else’s device, without your permission, the easy way to end this situation is for you to change your AppleID Password - and then update the devices that you still control with the new credentials:
Change your Apple ID password – Apple Support
What to do after you change your Apple ID or password - Apple Support
If the other devices belong to family members, they should create and use their own AppleID. If you wish to selectively share purchased Apps and Apple Services, you can setup and use the Family Sharing feature:
Family Sharing - Apple
Set up Family Sharing – Apple Support
I hope this information and guidance proves to be helpful in resolving the issue.