An allele is a gene
You could be right.
"A gene is the basic physical and functional unit of heredity. Genes are made up of DNA. Some genes act as instructions to make molecules called proteins. However, many genes do not code for proteins. In humans, genes vary in size from a few hundred DNA bases to more than 2 million bases."
"allele
noun GENETICS
each of two or more alternative forms of a gene that arise by mutation and are found at the same place on a chromosome."
But are the short tandem repeat portions of DNA that are used in genetic profiling parts of genes?
"DNA profiling has revolutionised forensic science and become a dominant identification tool
in law enforcement. Short Tandem Repeat (“STR”) analysis is the standard approach used to
create DNA profiles.7 These are created from locations within the human genome that do not
code for protein, known as ‘junk-DNA’. This means that profiles do not reveal any
information about an individual’s health status or physical traits."
https://www.otago.ac.nz/law/research/journals/otago065282.pdf