The sentence "A pair of earbuds like these are perfect" may seem a bit unusual because it appears to have a subject ("A pair of earbuds") that is singular but is followed by a verb ("are") that is plural. However, this sentence is actually correct, and it involves a subject-verb agreement concept known as notional agreement.
In English, sometimes the choice of verb (singular or plural) can be influenced not only by the grammatical number of the subject but also by the meaning or notion conveyed by the subject. In this case, "a pair of earbuds" is treated as a single entity, even though the word "pair" is technically singular. When we talk about "a pair of earbuds," we are referring to one set or one unit of earbuds.
The word "like these" further emphasizes that we are talking about multiple earbuds within that single pair. So, the notional agreement here is that the subject is considered plural in meaning, even though it may be grammatically singular. Therefore, it is correct to use the plural verb "are" in this context.
Here's another way to think about it: Imagine you have a pair of shoes. You might say, "These shoes are comfortable," even though "pair" is singular. Similarly, you can say, "A pair of earbuds like these are perfect," emphasizing that the earbuds within the pair are what you're describing as perfect.