Is Regression really an supervised machine learning method?

In the defintion of unsupervised learning it says:
There are no correct classes. The task is to find some kind of structure in a data set, for example grouping similar elements into clusters, or to reduce the information to some important dimensions. Visualization of data can also be considered as unsupervised learning.

See Chapter 4 section 1 (Swedish):
https://course.elementsofai.com/se/4/1

I see Linear Regression as a form of visualization of data and therefore I think linear regression is an unsupervised machine learning method/type/principle.

But in the end of chapter 4 it says:
explain the following three principles in supervised machine learning: the nearest neighbor method, linear regression and logistic regression.

See Chapter 4 section 3 (Swedish):
https://course.elementsofai.com/se/4/3