Adjust terminal escape regex