Adaptive Server version 15.7 allows you to treat square brackets individually in the like pattern-matching algorithm.
select * from t1 where f1 like '[[]XX[]]
select * from t1 where f1 like '[[]XX]'