Help needed - .profile correct formating

in my home folder i saw the file xsession errors an in it it read

(zenity:1346): Gtk-WARNING **: 16:42:26.546: cannot open display:
/home/johnny45/.profile: line 29: export: autofitter:no-stem-darkening=0”': not a valid identifier /home/johnny45/.profile: line 37: gtk4: command not found xrdb: Can't open display '' dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus dbus-update-activation-environment: setting XDG_CURRENT_DESKTOP=ubuntu:GNOME /etc/X11/Xsession.d/30x11-common_xresources: line 16: has_option: command not found xhost: unable to open display "" dbus-update-activation-environment: setting GTK_MODULES=gail:atk-bridge dbus-update-activation-environment: setting QT_ACCESSIBILITY=1 /etc/X11/Xsession.d/90x11-common_ssh-agent: line 9: has_option: command not found /home/johnny45/.profile: line 29: export: autofitter:no-stem-darkening=0”': not a valid identifier
/home/johnny45/.profile: line 37: gtk4: command not found

so in my profile file i have these export mods at the bottom is this the wrong place for them
or do the go under the bash section , how should my adds be in this file whats the correct format ?

~/.profile: executed by the command interpreter for login shells.

This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login

exists.

see /usr/share/doc/bash/examples/startup-files for examples.

the files are located in the bash-doc package.

the default umask is set in /etc/profile; for setting the umask

for ssh logins, install and configure the libpam-umask package.

#umask 022

if running bash

if [ -n “$BASH_VERSION” ]; then
# include .bashrc if it exists
if [ -f “$HOME/.bashrc” ]; then
. “$HOME/.bashrc”
fi
fi

set PATH so it includes user’s private bin if it exists

if [ -d “$HOME/bin” ] ; then
PATH=“$HOME/bin:$PATH”
fi

set PATH so it includes user’s private bin if it exists

if [ -d “$HOME/.local/bin” ] ; then
PATH=“$HOME/.local/bin:$PATH”
fi

export FREETYPE_PROPERTIES=“cff:no-stem-darkening=0 autofitter:no-stem-darkening=0”
export MUTTER_DEBUG_ENABLE_ATOMIC_KMS=0
export CLUTTER_PAINT=disable-dynamic-max-render-time
export MOZ_ENABLE_WAYLAND=1
export QT_QPA_PLATFORM=wayland
export DXVK_FEATURE_LEVEL=12
export ENABLE_VKD3D_FEATURE_LEVEL=12
export XDG_SESSION_TYPE=wayland
export QT_QPA_PLATFORMTHEME=gtk3
export MANGOHUD=1