According to many notable sources in the natural science and animal science sphere, cats do know their names.
In the research piece "Domestic cats (Felis catus) discriminate their names from other words" conducted by Tokyo’s Sophia University, they specifically note in their abstract that cats' interactions with humans have not been researched in depth to the degree that our interactions with dogs are. In this piece, they discovered that cats also are able to distinguish their own names when called by a stranger. For this study, cats in Japanese cat cafes, 78 of them, were observed and called by their name by strangers.
What was also noted in the study were the advantages that canines have over felines' in responding enthusiastically to their own name. Due to hundreds of years of selective breeding, dogs have been bred to be obedient and specifically responsive to commands. On the contrary, cats "pretty much domesticated themselves when wildcats followed mice and rats into agricultural settlements," as explained by National Geographic.
Dogs have been bred for this responsiveness, specifically to their names, for over 20,000 years. There is still some hope yet for cats though, according to researcher Atsuko Saito from the original Tokyo study. He explains in the study furthermore that cats are projected to evolve due to our new ways of cohabitating with them, something that has changed even in the last few decades. National Geographic backs this claim, explaining "With more and more cats spending their lives inside, in closer contact with humans, a cat’s ability to read and respond to our cues may become even stronger."
Tokyo Study Source:
https://www.nature.com/articles/s41598-019-40616-4
National Geographic Source:
https://www.nationalgeographic.com/animals/article/cats-recognize-names-dogs-pets?loggedin=true&rnd=1681743553411