To installed packages without extra information that allows result to be used elsewhere:
dnf list installed | cut -f 1 -d " "
For dnf5 and later:
dnf list --installed | cut -f 1 -d " "
With repoquery to filter out dependencies:
dnf repoquery --userinstalled | cut -f 1 -d " "