のが好きなんです

like doing

→ の
phrase Uncommon #18,198
like doing Attach it to a verb to say that you like doing that activity. なんです adds an explanatory or emphatic tone.
JA: 料理をするのが好きなんです。
EN: I like cooking.

森の中を散歩するのが好きなんです。

I like taking walks in the woods.

でも彼らには特徴がある羊のように群れでいるのが好きなんです

But they have one distinctive trait: they like to stick together in flocks, like sheep.

— RRR (2022)

花を育てるのが好きなんです。

I like growing flowers.

ピアノを弾くのが好きなんです。

I like playing the piano.

兄は切手を集めるのが好きなんです。

My older brother likes collecting stamps.

祖父は散歩するのが好きなんです。

My grandfather likes going for walks.