So something weird is happening when I installed latex + textstudio on my new machine and tried to compile an old paper:
When I write something like In Sec. \ref{sec:Background}, for some reason the entire name of section, and the text "section." gets compiled, instead of just the number of the section.
This is what happens when it gets compiled:

And this these are my codes:
\section{Introduction}
\label{sec:introduction}
\input{content/intro.tex}
\section{Background}
\label{sec:Background}
\input{content/background.tex}
And Using it as follows:
In Sec. \ref{sec:Background}
I am using the following documentclass:
\documentclass[twocolumn, switch]{article}
And the following general packages:
\RequirePackage[2020-02-02]{latexrelease}
%% General packages
\usepackage[utf8]{inputenc} % allow utf-8 input
\usepackage[T1]{fontenc} % use 8-bit T1 fonts
\usepackage{xcolor} % colors for hyperlinks
\usepackage[colorlinks = true,
linkcolor = purple,
urlcolor = blue,
citecolor = cyan,
anchorcolor = black]{hyperref} % Color links to references, figures, etc.
\usepackage{booktabs} % professional-quality tables
\usepackage{nicefrac} % compact symbols for 1/2, etc.
\usepackage{microtype} % microtypography
\usepackage{lineno} % Line numbers
\usepackage{float} % Allows for figures within multicol
%\usepackage{multicol} % Multiple columns (Method B)
\usepackage{amsmath}
\usepackage{bm}
I am using textstudio and tried using pdflatex and xelatex compilers, but no luck. Why is this happening? When I compiled this on my old computer, this didn't happen and only the number got compiled, like "Sec. 2".
This is happening for all my usages of \ref, for example references of tables, figures, etc.
Edit1:
I Just noticed this is happening because of this : \RequirePackage[2020-02-02]{latexrelease}, but if I remove it, another problem happens:
So why is \RequirePackage[2020-02-02]{latexrelease} causing this problem and how can I fix it without removing this requirepackage?

\refmacro. – Mico Dec 09 '22 at 06:43latexreleasepackage unless you know exactly what you're doing. For instance, don't load the package with the option[2020-02-02]. My second piece of advice: Don't load thexwatermarkpackage unless you know what you're doing. Number 3: thesubfigurepackage is obsolete and deprecated -- for almost 20 years by now. Don't load this package. Instead, load eithersubfigorsubcaption. – Mico Dec 09 '22 at 07:25