I tried, ls (^(*.txt)).
I get error: ls cannot access. No such file or directory.
You could do:
ls | grep -v txt$