Good Morning and welcome to Just answer. I am Dr. Loretta, a licensed veterinarian and I am happy to answer your question.
Pomeranians can have anal gland issues that would also cause a swollen and sore anal area. It is best to have your vet examien this to be sure. The fact that TYson is acting odd tells us that he is in a great deal of discomfort and Impacted anal glands can do this.
Does that make sense to you?
Please let me know if you have ANY other questions. My goal is to give you 100% satisfaction and if you are not yet satisfied, please Reply so I can clarify for you
Sincerely, Dr. Loretta