Will AI replace a UX Designer's job? The answer: yes and no.
If you can do the following three things, you are more likely to secure your job from AI.
It's about knowing why. "Knowing why" is essential for a UX designer, which means that during the design process, you are able to share your design process and show your thoughts behind those design decisions. This is critical.
If you can use data, research, or your experience to support and back your design. It will be really helpful because AI can only give you some general tips and cannot support with specific data or experience.
Number three is about connecting to people, business, and other resources, which means that if you work in a company, be sure you know how the business works and who's doing what, and create a really good relationship with the business and people.
If you can do these three things, it's less likely you will be replaced by AI.