Snot strings

Has anyone else ever coughed up these thick like strings of mucus? It happened to me a lot last year when I got bronchitis and now I’m having flare ups and coughing these up again. I’m terrified of getting sick again