There's a lot to unpack in their post, the situation sucks for them and I'm not defending the treatment they received, I am pointing out that they aren't a normal citizen if they go to high risk areas and fight with foreign militias.
>I would think at this point the security police would already know the "story behind" it
Cross enough times and a citizen with a boring enough life will probably receive some scrutiny over why they cross so much. I dated a foreigner for many years and at some point her country started to get suspicious of me wanting to overstay. The Americans just wanted to know if I was a smuggler moving drugs or cash back, that's it. The country I was going to was not an active warzone, though when I first crossed as I was younger to 'meet friends I met online' this triggered some extra scrutiny.
> Do you think it is making the country safer?
Vetting citizens returning from fighting with foreign combatants probably does fit the exact scenario of making the country safer. There is no way possible for US government to know (nor should they know) what a citizen is doing every second of their life. Having to go through a secondary and receive questioning about what they've been up to in a high-risk area is not unreasonable.
If you have some time I encourage you to read the experience of Ms. Cervantes, a woman "legally" finger raped by border patrol / physicians.
https://storage.courtlistener.com/recap/gov.uscourts.azd.985...
It's clear to me these lists are as much about extra-judicial punishment as "finding out." I do not think a place exists in our society for these lists that impose against the freedom of citizens to travel without some sort of due process to petition a court for removal and/or some way to "drop off" the list after X years of living as a free peaceful citizen in harmony with others. Law enforcement officers should be tasked with enforcing the law, not with harassing people about things that are non-criminal, like fighting against ISIS (believe it or not there is no law that prevents you from fighting in a foreign militia, and in fact I do not believe any American has ever been charged for fighting with YPG.)
not customs, border patrol. I mean, I'm sure what he's carrying would be scrutinized, but that's not the source of this list
Have you ever crossed a US border by land or sea or flown into the US? Customs agents handle ports of entry, border patrol handles the border between ports. Both are under CBP under homeland security but wear different uniforms, different job activities. They mentioned crossings and most citizens not wanting a headache use the legal crossings.
Were you deployed or did you go there on your own? Joining with a militia and fighting in a war zone full of terrorists is the sort of activity that should trip all the red flags. US-backing doesn't necessarily mean the group is without their own controversies and if you weren't deployed how the hell do they actually know what your goals were while you were there?
I get it, your situation sucks ass and you shouldn't be subject to abuse but you're absolutely not a normal case and 'fighting with a foreign militia' is exactly the sort of activity customs is going to want to know the story behind.