Sort of. Too small sample size. Expecially seeing you have not made it past 50.
There is an issue where people with streaks of hundreds or THOUSANDS of matches see absolutely no redundance or the AI "trying to hardcounter" them.
I myself have occasionally faces a few hard compositions in a row, purely by RNG. If you ever passed by Discord, you might have noticed me complaining about getting 3-4 fire trainers against in a row (who are often enough the bane of my compositions), or in my own biggest streak, me mentioning that Bisharp/Drapion was my hardest counter, and it inevitably happened at the 100th battle and ended said streak. It's random, it can happen, expecially when effectively talking of common pokemon.
25-40 battles are not a relevant sample size, EXPECIALLY knowing that between battle 25 and 40 there's 2 ice specialists and several Trick Room specialists who all have access to plenty of both.
A relevant sample size has 4 digits, or more.
Plus you need to consider that once you reach 30 and start facing set 3s who ARE optimized, and 40+ which only feature set 3-4 plus Legendaryes who are even further optimized for ideal coverage and movesets, you can get the impression of "the AI generating counters", without realizing that it's simply very common sets.
If you find yourself running a composition that does feel countered / hard to handle too often, it is an issue with the composition more than the AI.
Specifically, you run Haxorus, which is unfortunately for you, a mediocre / awful pokemon. It's not a safe Dragon Dancer, does not have the raw power that something like (Mega)Salamence has to tear through bulky Fairyes and most Water types who run Ice coverage (Ice beam and Blizzard are *extremely* common in most AI water types, and so is Dazzling Gleam on Psychic types), does not have an ability to ease setting up, does not have the bulk to take even strong resisted hits let alone supereffective (my Aromatisse in my streak could 1hko or 2hko most AI Haxoruses variants, with 0 spatk investment) is vulnerable to statusers (since you run Steelium Z Iron Tail I assume) and does not have a realistic way to kill stallers either.
How are you exactly planning to ever deal with Veteran Xio if you ever run into her post legend (and you will inevitably at some point)?
https://www.serebii.net/sunmoon/battletree/xio.shtml
She literally only runs Fairy types, with plenty of Grass/Fairy types with grass coverage who would make quick work of your Slowbro, on top of the possibility of mega Mawile (with Intimidate!) and Mimikyu who as well as deleting Slowbro and Haxorus will make quick work of Chansey.
So yes, rather than claiming the AI "builds specific counters to you", I suggest you to reconsider your composition if you feel that the AI is actually throwing too many counters at you.
If you can't safely handle most things in the way to 50, then believe me, you will get destroyed by post legend sets who ACTUALLY have mono legendary teams, with plenty of Steel, Ice and Fairy everywhere, including Mind Reader Sheer Cold Articuno (yes.)
Having a handful hard matchups is fine, but when every other matchup you have issues, there's problems with the composition.