$Version
(* "12.2.0 for Mac OS X x86 (64-bit) (December 12, 2020)" *)
Clear["Global`*"]
eqn = {
n*q''[x] - (6 x - x^2)*q'[x] - s*q[x] == -1,
q[0] == q0, q'[0] == qp0};
The solution is given as a DifferentialRoot
(sol[q0_, qp0_, n_, s_] = DSolve[eqn, q, x][[1]])

% // InputForm

To numerically evaluate the solution, the initial conditions and all variables must be given values:
(q[1.0] /. sol[0, 1, 2, 1/2])
(* 1.37193 *)
Or using ParametricNDSolve for a numeric solution
soln = ParametricNDSolve[eqn, q, {x, 0, 2},
{q0, qp0, n, s}]
q[0, 1, 2, 1/2][1.0] /. soln
(* 1.37193 *)
Manipulate[
Plot3D[
Evaluate[q[q0, qp0, 2, s][x] /. soln],
{x, 0, 2}, {n, -3, 3},
AxesLabel -> (Style[#, 12, Bold] & /@ {x, n, q})],
{{q0, 0, "q[0]"}, -1, 1, 0.05,
Appearance -> "Labeled"},
{{qp0, 0.35, "q'[0]"}, -1, 1, 0.05,
Appearance -> "Labeled"},
{{s, 0.5}, -5, 5, 0.5,
Appearance -> "Labeled"}]

HeunTfunction. – Mariusz Iwaniuk May 06 '21 at 13:46Nis a protected symbol, which should not be used as a variable/parameter. (See #4 https://mathematica.stackexchange.com/a/18395) – Michael E2 May 06 '21 at 13:51HeunTfunction is a special function for the notation of the solutions of certain ODEs. – user64494 May 06 '21 at 14:00