To expand on this, contraction of flexor digitorum profundus muscle results in flexion at the DIPs and PIPs. The tendon attaches at the tip of the finger, in contrast to flexor digitorum superficialis (attaches at the PIPs). Recall innervation of the forearm muscles is mostly from the median nerve, except for 1.5 muscles (ulnar half of flexor digitorum profundus and the flexor carpi ulnaris, both supplied by ulnar which makes it ez to remember yay).
But also if you got this wrong like me go read that link because it's a really nice review.
a nice review of myotome and dermatome / reflexes
Flexor Digitorum Profundus
Action: Flexes distal phalanges at distal interphalangeal joints of medial four digits; assists with flexion of hand
Innervation: Medial part: ulnar nerve (C8 and T1); Lateral part: anterior interosseous branch of median nerve (C8 and T1)