That would be very close to what I wrote to your question for THIS year's starting and ending date, just that you need to subtract 1 from the year number:
select
cast( trim( extract( year from current_date ) - 1 ) || '-01-01' as DATE )
as first_day_of_previous_year,
cast( trim( extract( year from current_date ) - 1 ) || '-12-31' as DATE )
as last_day_of_previous_year;
That would be very close to what I wrote to your question for THIS year's starting and ending date, just that you need to subtract 1 from the year number: