That's disgusting.
I haven't seen anything similar.
Probably your laptop was so dirty that ants found home in there.
Just throw your laptop in rubbish and buy a new one but try to keep it clean.
Well, I don't really think I should throw away my laptop in trash just because it has ants

I have a bad habit of eating cookies, chocolates while I'm working on my laptop and most of the times, I do not brush my hands before typing onto the laptop. I think that is what made the debris settle into the laptop from the small gaps in between the keyboard and that made ants attack my laptop.
I am probably not going to throw my laptop only because of this issue lol. But yet, thanks for your suggestion.
Well, at least you know what attracts ants to your laptop. Having cookie and bread crumps inside keyboard is common, but if they also contain sugar then it's even worse.
You shouldn't really get rid of your laptop but you definitely should disassemble it and do some inside cleaning. After that, I recommend some tips like checking rooms because they might have a nest somewhere else.