Not sure what this is

So idk what this is. It’s happened quite a few times every now and then but it came out of my mouth. It’s not food. But I have to like cough it up to get it out from my throat.