Hi. Dell inspiron 5400 here. Touchpad detected most of the time but sometimes it boots up and it says 'no touchpad found'

What is happening? Is it a recent kernel regression?

We can only speculate with the information given. Does the touchpad keep working if detected at boot? Only happens when connected to a charger, on battery, or randomly? Does it ever start working after a few minutes if not detected initially at boot? The quality of Dell is questionable.

Many such issues if you search…
https://www.reddit.com/r/Dell/comments/eyg6jd/dell_latitude_5400_touchpad_issues/

You could test behaviour with a live distro running an older kernel

Sometimes when i boot up it doesn’t detect it, and sometimes i have to reboot in order for it to be detected. And sometimes when it boots up it is detected.

You didn’t answer all the questions. It could be a possible hardware fault, but as suggested before you could try testing with a live distro.

It happens randomly, whether connected to a charger, or on battery.
I haven’t tested if it works a few minutes after as i often reboot if it doesn’t work.

One of many similar threads
https://www.reddit.com/r/Dell/comments/p4kesm/anyone_experiencing_touchpad_problems_on_his/