As I repeatedly mention, the most famous historical figure who caught the bubonic plague (most likely Y. Pestis) and could survive as well was Emperor Justinian the Great of Eastern Roman Empire during the outbreak also named after him, the plague of Justinian (541/2-544).
Concerning the outbreak of the Black Death from 1346/1347 to 1353, AFAIK few secular rulers in Europe officially caught the bubonic plague and died of this disease. On the other hand, many churchmen (including de facto ruler of the state) as well as members of European ruling families also fall victim to the plague. It is worth mentioning that we have surprisingly little amount of the reliable contemporary accounts of the plague across Europe than generally assumed.
The followings are some examples of the deceased during the Black Death:
Reference:
Before other responses come in, you might be interested in my short response from another subreddit, where I mention rulers and other high-ranking people who died due to various illnesses, including bubonic and pulmonary plague.